Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot Table Expression - % of Sales

I have created a Pivot Table of Sales and I am trying to convert Sales values to a % of Sales for that specific column.   See attached document.

3 Replies
swuehl
MVP
MVP

Try something like this as expression

=If( SICCodeDesc = 'EF',

     Sum(Amount), // replace Sum(Amount) here and below with your current measure

   Sum(Amount) / Sum(TOTAL<SICCodeDesc> Amount)

)

Not applicable
Author

Hi Ryan,

swuehl expression is correct,but i just add the Num format to the expression

IF(SICCodeDesc='EF',Num(Sum(Sales),'$#,##0'),

    Num(Sum(Sales)/Sum(Total<SICCodeDesc> Sales),'#,##0%'))

And leave the Number format in sense to Auto

Not applicable
Author

It worked.  Thank you for the help