Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
P_Kumar
Contributor II
Contributor II

Values not summing up while 'No Split' on Year in Pivot Table

Hi,

I am using QS Sep'2018 version.  I have created a Pivot Table with Year and Month as dimensions and has a measure.  When I don't split the pivot table, the measure values are being displayed perfect per each month but the sum(measure) is not being displayed for Year and showing 'Zero' per Year when I don't split on the Year.

Can some one pls help with the issue.  Thanks.

Labels (2)
1 Solution

Accepted Solutions
zzyjordan
Creator II
Creator II

try this expression RangeSum(Before(sum(Sales),1,1)) This will fix the collapse issue for 2017, but for 2016, as you use before in the expression, there is nothing before 2016, it returns 0 which I think is correct unless you don't need to use before function. ZZ

View solution in original post

8 Replies
zzyjordan
Creator II
Creator II

Hi, Praveen
can you provide some more details like screenshot to help understand your issue?

ZZ
P_Kumar
Contributor II
Contributor II
Author

Thank you here is the issue in detail:

When we expand in on the year, we get to see all the values for each month but when we collapse, it shows zero for Year. Please advice.  Also, the issue only persist 2017.  

 

 

zzyjordan
Creator II
Creator II

Still can't reproduce in my side. it may because of your data structure or your expression used. Can you share a qvf?

ZZ

P_Kumar
Contributor II
Contributor II
Author

Hi,

I have attached a sample qvf.  When you expand on 'Year', you see sales and Range sum values for each 'Month' but when you collapse, you see 'Rangesum' as 'zero'.

Also, though there are values associated for each month and Year but when you select some specific 'Year' and 'Month' from filters, you see the 'Rangesum' as 'Zero' (eg: Year=2016, Month=4)

Please advise.

--- When I am attaching the qvf, it's prompting following message and not able to attach the qvf.  Any other way I can send the file? Pls advise. --

'The contents of the attachment doesn't match its file type'

zzyjordan
Creator II
Creator II

try add your qvf to a zip file

 

P_Kumar
Contributor II
Contributor II
Author

Thanks.. attached a zip file.

zzyjordan
Creator II
Creator II

try this expression RangeSum(Before(sum(Sales),1,1)) This will fix the collapse issue for 2017, but for 2016, as you use before in the expression, there is nothing before 2016, it returns 0 which I think is correct unless you don't need to use before function. ZZ
P_Kumar
Contributor II
Contributor II
Author

Thank you.. this is working!!