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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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.