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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
praveenpurush6
Contributor III
Contributor III

Re: Add a Total Value to the Pivot Table

!Hi Anyone,

I have the pivot table with totals now.

How can I get the percentage by programs?

I have added a expression =count([G-code])/Count(TOTAL [G-code]) but this gives the percentage by taking the overall total.

For example for G-Code A the percentage I want is 1/1=100% but the above expression gives 1/8 which is 0.125.

Any help?

I tried various combinations of Aggr (my level) but no use.

Thanks!

3 Replies
sunny_talwar

May be try this

=Count([G-code])/Count(TOTAL <Program> [G-code])

Capture.PNG

isingh30
Specialist
Specialist

Please check the attachment.

praveenpurush6
Contributor III
Contributor III
Author

Thanks @Sunny Talwar.

It worked.