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

Running totals in two dimensional table

Colleagues, i just posted discussion about calculation columnNo in two dimensional table:

Calculate columnNo with two horizontal dims

and realized that when we use Total statement in ColumnNo(), it doesn't calculate running totals by each column.

Can anyone help to solve this thing?

Formula used in expression:

rangesum(before(sum(Sales),1,ColumnNo(total)-1))

1 Solution

Accepted Solutions
stabben23
Partner - Master
Partner - Master

aggr(rangesum(above( sum(Sales),0,rowno(total))),Date)

View solution in original post

3 Replies
stabben23
Partner - Master
Partner - Master

aggr(rangesum(above( sum(Sales),0,rowno(total))),Date)

avkeep01
Partner - Specialist
Partner - Specialist

Hi Staffan,

I came to the same conlusion. I've got the app attached.

AGGR(RANGESUM(ABOVE(SUM(Sales),0,ROWNO(TOTAL))),Date)

Anonymous
Not applicable
Author

Thanks,  colleagues!!!