Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to accumulate the values of a column to another column

Hi,

I'm newcomer zu QV and I'm facing the folowing problem:

There is table with the following structure.

(Member, Month, Type, Value)

I have also a table diagram, with the structure

(Member, Month, Invoiced, Ordered)

Invoiced is created from Value where Type = 1  I.e. Invoiced = Sum ( {<Type ={ 1}>} Value)

Orderd is created from Value where Type = 2   I.e. Ordered = Sum ( {<Type ={ 2}>} Value)

How can I create a new column (Formular) that accumulates the values of Invoiced within Member incl all Month's

Thanks in advanced

Udo

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sum ( {<Type ={ 1}>} total <Member> Value) will give you the total over all months for the member.

If you want a running total you can use the above() function: rangesum(above(Sum ( {<Type ={ 1}>} Value),0,rowno())). As long as Member is the first dimension and Month the second the rangesum should restart if Member changes.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sum ( {<Type ={ 1}>} total <Member> Value) will give you the total over all months for the member.

If you want a running total you can use the above() function: rangesum(above(Sum ( {<Type ={ 1}>} Value),0,rowno())). As long as Member is the first dimension and Month the second the rangesum should restart if Member changes.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert, thanks for your help, The running total solution could solve my problem,

Best regards.

Udo