Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaymehtaece
Contributor
Contributor

Range sum is not working properly

Hi All,

I am trying to calculate running sum in  pivot table using formula 
RangeSum (above(TOTAL Sum([Actual Qty]),0,RowNo()))/RangeSum (above(TOTAL Sum([Forecast Lag0]),0,RowNo()))

 

But this formula is not working when i am showing my table horizontally (first tabular chart).

However its working fine for vertical pivot table (second table).

kindly guide me why this is happening and what is the solution to bring running total in first chart.

Running total.PNG

1 Solution

Accepted Solutions
tresesco
MVP
MVP

And yes, rowno() should be replaced with columnNo(). Therefore,

replace:

Above() with Before()

RowNo() with ColumnNo()

 

 

 

View solution in original post

3 Replies
tresesco
MVP
MVP

For horizontal calculation to work, replace all above() with before()

tresesco
MVP
MVP

And yes, rowno() should be replaced with columnNo(). Therefore,

replace:

Above() with Before()

RowNo() with ColumnNo()

 

 

 

ajaymehtaece
Contributor
Contributor
Author

Thanks Tresesco

Solution provided by is working fine for me.Thanks A Lot