cancel
Showing results for 
Search instead for 
Did you mean: 

Bex formula for copying last non zero value from column set into another column

Former Member
0 Kudos

Hi,

can anyone help me with implementing one condition.

I have some colums in BEX as this.

I want to copy the last non-zero value from this q() colums into the total column by using bex formula.i can use if else condition type for this but it becomes really big. in future there may be need to increase the colums also.

or is there any other way to implement it by using planning functions ?

please share ur answers.

total Q1q2q3q4q5q6q7q8q9q10q11
19101112131417190000
158347586141500

Accepted Solutions (1)

Accepted Solutions (1)

former_member194898
Active Contributor
0 Kudos

Hi,

As far as I know it's impossible.

You can display data in quarters (year by year)

then I would use simple VB code to assess last non zero value in rows.

Regards, Leszek

Former Member
0 Kudos

Hi Leszek,

Thank you for your solution.

Can i use this VB coded workbook or analysis grid from bex analyser  in WAD .

Thanks,

Rakesh.

former_member194898
Active Contributor
0 Kudos

Hi,

I use VB coding in BEx Analyzer.

You can find my way of attaching VB code to a workbook here .

Regards, Leszek

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If q( ) repesents the infoobject then use aggregation LAST. If they are different KFs use Customer Exit formula variable or use nested formula with * or +. or as per suggestion given by Leszek use VB Code.

Regards,

Sucheta

Former Member
0 Kudos

Hi Sucheta,

this Q() represents the selections .

Can i  use the VB code in WAD ??

Thanks ,

Rakesh.