Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Shahzad_Ahsan
Creator III
Creator III

Calculate Actual Value from Cumulative Values

Hi 

I have data in cumulative form. I need to calculate the actual difference

My Table is like this:

CategoryDateValue
A03/12/2019968
B03/12/2019478
C03/12/2019259
D03/12/2019478
A04/12/2019970
B04/12/2019481
C04/12/2019261
D04/12/2019490
A05/12/2019980
B05/12/2019490
C05/12/2019270
D05/12/2019500

 

I need Result like this

 

CategoryDateValueResult
A03/12/2019968968
B03/12/2019478478
C03/12/2019259259
D03/12/2019478478
A04/12/20199702
B04/12/20194813
C04/12/20192612
D04/12/201949012
A05/12/201998010
B05/12/20194909
C05/12/20192709
D05/12/201950010
Labels (1)
2 Replies
Anil_Babu_Samineni

Perhaps this?

If(Category=Above(Category), Sum(Value)-Above(Sum(Value)), Sum(Value))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Shahzad_Ahsan
Creator III
Creator III
Author

Hi 

No, this is not working

if I sort the column by Category or date, the expected value changes.