Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
kkkumar82
Specialist III
Specialist III

Need % calculation in pivot table for a pivoted column

Hi Qlikers,

In the attached qvw I have two dimensions ProductID and Quarter, the Expression is Sum(Sales), I just want to find out the %of Total

by Quarter, I have pivoted the column Quarter and probably missing the expression to get the Sales% for each Product on the total sales

happened for all products in that Quarters.

Any ideas, would be great.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Use this?

Sum(Sales)/Sum(Total <Quarter> Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

6 Replies
Anil_Babu_Samineni

Use this?

Sum(Sales)/Sum(Total <Quarter> Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kkkumar82
Specialist III
Specialist III
Author

thanks anil for your reply but that isn't work, showing all zeroes%

Anil_Babu_Samineni

Strange, Look here

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kkkumar82
Specialist III
Specialist III
Author

I achieved this using the below expression, I got the expected

RangeSum(Above(Sum(Sales),1,NoOfRows(TOTAL))) + RangeSum(Below(Sum(Sales),0,NoOfRows(TOTAL)))

Any other ways apart from this

stalwar1

kkkumar82
Specialist III
Specialist III
Author

Which version are you using ?

kkkumar82
Specialist III
Specialist III
Author

You were correct, I made a typo.

Any idea that this works the same in Qliksense. Mean While I will give a try