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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Horizontally accumulation of a sum

Hi folks,

i have a pivot table with all days of a month. I sum the sales of one day and the accumulative Sales.

This works fine.

DaySum(Sales)

RangeSum(Above(TOTAL Sum(Sales), 0, Rowno(TOTAL)))

1.101010
2.102030
3.103060
4.1040

100

But it want to have the day Dimension horizontally:

Day1.102.103.104.10
Sales10203040
accumulative sales103060100

A straight table with a horizontally day would also fit.

How should the expression for horizontally accumaltion of the sum look like?

Thank you
Jürgen

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Convert Straight table to Pivot table, and drag the Day column on top the header of the table.  If expression is not working then try Before() instead of Above().

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi Jagan,

thanks for the tip with Before. I changed rowno to ColumnNo and i got a working  expression.

Pivotable with horizontally day -> Expression for  accumaltion of the sum:

RangeSum(Before(TOTAL Sum(Sales), 0, ColumnNo (TOTAL)))

idogridish2
Creator III
Creator III

Thanks!

tiklabaq
Creator
Creator

Thanks Jürgen!!