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: 
Not applicable

Show expression as % of Total

Hi,

I have an expression that is as below:

sum(if(SeasonShort = vCurrentSeason,(Sales))) [/Code]
I want to add a column in my pivot table next to this expression that shows this formula as a percentage of the total.
I know if it was a straight table I could use the same formula and just tick the "Relative" box and I will have the Sales as dollars in one column and the sales value as a % of the total in another. Unfortuneatly this isnt available in the Pivot table style which I need.
Any ideas?
David</body>
1 Reply
Not applicable
Author

Try with total

sum(if(SeasonShort=vCurrentSeason, Sales))/sum(total if(SeasonShort=vCurrentSeason, Sales))