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

Percent count in a pivot

I have a pivot table with two columns. In the first column i make a count of the abonnees. How can i get the percent of that counts in the second column from the total abonnees of that row.

error loading image

Who can help me with this problem?

1 Solution

Accepted Solutions
Not applicable
Author

This is the sollution.

=Num(Count(Klantnummer_BC)/Count(Total <VertegenwoordigerId> Klantnummer_BC))

Thanks anyway

View solution in original post

8 Replies
Not applicable
Author

HI,

You try this:


=Num( Count(Aantal)/Count(Total Aantal) * 100, 0.00) & '%'



Regards

Not applicable
Author

=Num(Count(Klantnummer_BC)/Count({<VertegenwoordigerId={'2'}>}Total Klantnummer_BC))

This one works only for the first column. How can i make {<VertegenwoordigerId={'2'}>} variable so he takes the columnvalue?



Not applicable
Author

Hi Dirk

I didn't get your idea on this one.


dirkgroen wrote:
How can i make {<VertegenwoordigerId={'2'}>} variable so he takes the columnvalue?
<div></div>


You want to save the value of Vertegenwoordigerid in a variable?

Not applicable
Author

i need the total of abbonements of that VertegenwoordigerID

Not applicable
Author

HI,

Ahh.. ok.. how about adding '$' in to your expression:


=Num(Count(Klantnummer_BC)/Count({$<VertegenwoordigerId={'2'}>}Total Klantnummer_BC))


Not applicable
Author

When i hardcoded set de vertegenwoordigerID on 2 it works for the first. But not for the others. so VertegenwoordigerId needs to be variable and abonnementen not.

Not applicable
Author

This is the sollution.

=Num(Count(Klantnummer_BC)/Count(Total <VertegenwoordigerId> Klantnummer_BC))

Thanks anyway

Not applicable
Author

Hmm.. can you share to us your file? (or a sample of it) so that we can help you more