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: 
uko223
Contributor III
Contributor III

Totals Not Calculating in Pivot Table

Hi, 

I have a pivot table that uses rangesum to calculate a cumulative sum based on column 1 and column 2. However, the subtotal based on the "Date" dimension is not calculating any of the rangesum measures.  The rangesum measure I am using for CY WTD is below.

if([Fiscal - Flag Current PTD]='Y',
RangeSum(Above(
TOTAL
Column(1),
0, RowNo(TOTAL))))

Any ideas how to get the total to display the total amount for the CY WTD column based on the Date dimension?

 

3-14-2019 9-37-10 AM.jpg

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Perhaps like this:

If(Dimensionality()=0,Sum(TOTAL),

if([Fiscal - Flag Current PTD]='Y',
RangeSum(Above(
TOTAL
Column(1),
0, RowNo(TOTAL))))

)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Perhaps like this:

If(Dimensionality()=0,Sum(TOTAL),

if([Fiscal - Flag Current PTD]='Y',
RangeSum(Above(
TOTAL
Column(1),
0, RowNo(TOTAL))))

)


talk is cheap, supply exceeds demand
uko223
Contributor III
Contributor III
Author

That didn't seem to impact the total at the bottom unfortunately.