Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
kumarkp412
Creator II
Creator II

cumulative subtracting

Hi  friends,

I am having small problem to calculate the cumulative subraction.

I´m Looking for a formula that can calculate the total value subtract the current value

i.e this is table i am having

yearsales
2009100
2010200
2011300
2012400
2013500

i want to calculate the cumulative subtract as total value - current value

yearsalescumulative-sub
20091001400
20102001300
20113001200
20124001100
20135001000

So in the above table cumative sub will come base on total sales of the years - current sales

i.e total sales =1500 ,current year sales- if it is 2009 then the sales is 100 , then value is  1500-100 = 1400

.

.

.

i am not able to get the formula for that .

can any suggestion please


Thanks

Kumar

7 Replies
mightyqlikers
Creator III
Creator III

Hi Praveen,

use the folloing expression.

=Sum(TOTAL Sales)-Sum(Sales)

Regards

Samwise

mightyqlikers
Creator III
Creator III

Please find the attached qvw

Regards

Samwise

kumarkp412
Creator II
Creator II
Author

Hey Sam,

Thanks for reply,

When it  was a straight table it is coming correctly , but it is a pivot table.then it is not coming correctly.

can you give me suggestions in to create  it in pivot table

Thanks

Kumar

mightyqlikers
Creator III
Creator III

it is working fine even in pivot table.

please attaché your sample qvw.

Regards

Samwise

Anonymous
Not applicable

Hola,

PFA

HTH

kumarkp412
Creator II
Creator II
Author

ok sure

I will attachement  my sample

kumarkp412
Creator II
Creator II
Author

This is sample qv.

In that i have given how i want to represent the values in the  table.

Thanks

Kumar