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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count the total of each value from a field?


Hello everyone,

I am creating a bar chart which displays the percentage of Red and Green from each Area, as you can see below:

kpis.JPG

The chart show the total percentage considering all areas, but i would like to display the total percentage of each area.

For example, in this case, "Market Insights" should be 100% Red, and "SFE" should be 50% Green and 50% Red.

I tryed to use Count Distinct, but was not enought:

   Count (DISTINCT [Status Month])

Please, can someone help me on this?

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You must be using the checkbox "Relative", correct?

Instead, divide each count by the total count by Area, like this:

Count (DISTINCT [Status Month]) / Count (DISTINCT TOTAL <Area> [Status Month])

Check out my new book "QlikView Your Business" - you will learn how to develop the most complex calculations in QlikView and Qlik Sense.

cheers,

Oleg Troyansky

QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense

Ask me about Qlik Sense Expert Class!

View solution in original post

3 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Rodrigo Caldas,

Can you give us a sample code so that we can take a look?

Thanks,

Miguel

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You must be using the checkbox "Relative", correct?

Instead, divide each count by the total count by Area, like this:

Count (DISTINCT [Status Month]) / Count (DISTINCT TOTAL <Area> [Status Month])

Check out my new book "QlikView Your Business" - you will learn how to develop the most complex calculations in QlikView and Qlik Sense.

cheers,

Oleg Troyansky

QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense

Ask me about Qlik Sense Expert Class!
Not applicable
Author

Thanks Oleg.