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

Cumulative measure

Dear All,

 

I wish to compute the cumulative value for a measure.

In the below table I want to compute the cumulative value for the sales.

can you kindly advise , thanks for the help.

 

ProductMonthWork daySalesCumulative (expected result)
AJan133
AJan247
AJan3512
AJan4618
BJan144
BJan226
BJan339
BJan4413
AFeb122
AFeb235
AFeb3712
AFeb4921
BFeb11111
BFeb21323
BFeb31437
BFeb41552

 

6 Replies
sunny_talwar

You can try this

Aggr(
   RangeSum(Above(
      Sum(Sales)
   , 0, RowNo()))
, Product, Month, ([Work day], (NUMERIC)))
sathishkumt
Contributor II
Contributor II
Author

Dear Sunny,

 

Thank you for the reply.

 

I tried this somehow it doesn't work.

The numeric doesn't appear when I type them.

does it need any other step/activation?

 

sunny_talwar

Which version of Qlik Sense are you using? Would you be able to share a sample where you can show us the issue?

jyothish8807
Master II
Master II

Hi,

Even below expression would be enough, just set Product, month, work day as dimension in a straight chart and sort accordingly.

RangeSum(Above(
Sum(Sale)
, 0, RowNo()))

Best Regards,
KC
sathishkumt
Contributor II
Contributor II
Author

Thank you jyothish this worked.

jyothish8807
Master II
Master II

You are welcome 🙂 Please close the thread by marking the correct answer.

Best Regards,
KC