cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate Previous Value

Former Member
0 Kudos

Hello

I am relatively new to Business Objects. My company currently uses Xi and I am stumped as to how to calculate a previous value and then use that calculated value in another field. For Example:

Jan 2013Feb 2013
A/R100000110000
Beginning A/R300000310000 (From Jan 2013 Ending A/R)
Collections90000100000
Ending A/R310000320000

Jan 2013 Beginning A/R value is hardcoded.

Ending A/R = Beginning A/R + A/R - Collections

Next Month Beginning A/R = previous month's Ending A/R

Any ideas or assistance is greatly appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use following formulas:

in beginning A/R cell:

= if isnull(previous(Endig A/R)) = 1 then beginning A/R else previous(Endig A/R)

Former Member
0 Kudos

Thanks for pointing me in the right direction.

In order to get it to work correctly I had to include RunningSum:

Starting AR Calc:

=If([Min MonthYear] = 1) Then (Beginning AR) Else (RunningSum(Previous([Beginning AR] +Sum([Collections])+Sum([A/R]))))

Ending AR Calc:

=If([Min MonthYear] =1) Then ([Beginning AR] +Sum([Collections])+Sum([A/R])) Else RunningSum( Previous([Beginning AR] +Sum([Collections])+Sum([A/R])))+Sum([Collections])+Sum([A/R])

Answers (0)