Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding a % in a pivot table

Hi

Kind of a newbie into Qlikview and can't seem to find this answer anywhere else, so i'm hoping some of you can send me in the right direction.

I would like to add a percent in a pivot table showing the percent of customers in each group - compared to the total customers. I have attached a sample doc

Kind regards

Flemming

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use the total keyword:

=sum(No_Customers)/sum(total No_Customers)

If you don't want to overall total but over a dimension you use something like:

=sum(No_Customers)/sum(total <Status> No_Customers)

or

=sum(No_Customers)/sum(total <Month> No_Customers)

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Not applicable
Author

Go to the chart properties of Pivot table and Use Number tab and change the "Number format Settings" to Fixed to and give 2 as decimal and check the check box Show in Percentage%

Not applicable
Author

Hi

Thats a part of the problem, but how do i get QV to measure the total amount of customers inside a group... i have tried with a set analysis but it does not seems to do the trick.

Not applicable
Author

Hi,

If you want to show % symbol after ant exp use below code.

 

sum(No_Customers) & '%'

And in numbers tab check show in %

Gysbert_Wassenaar

You can use the total keyword:

=sum(No_Customers)/sum(total No_Customers)

If you don't want to overall total but over a dimension you use something like:

=sum(No_Customers)/sum(total <Status> No_Customers)

or

=sum(No_Customers)/sum(total <Month> No_Customers)

See attached qvw


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks a lot... that worked 🙂