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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Gauge Chart Problem?

Hi;

in my database 1. column is Gender(value is "E" or "F")
2. column is customer_name(e.g. "John")

I would like to count and show male and female customers in Gauge Chart. I try it but I failed...

Any idea about this problem ?


Thanks in Advance...

Labels (1)
1 Solution

Accepted Solutions
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

what do you want to show in the gauge chart? Percentage of "E" or "F"? Percentge "E" of all? Percentage "F" of All?

Put the expression:

(Sum(If(gender='E',1,0))/Sum(If(gender='F',1,0))

(Count(All) - Sum(If(gender='E',1,0))) / Count(All)

or (Count(All) - Sum(If(gender='F',1,0))) / Count(All)

View solution in original post

3 Replies
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

what do you want to show in the gauge chart? Percentage of "E" or "F"? Percentge "E" of all? Percentage "F" of All?

Put the expression:

(Sum(If(gender='E',1,0))/Sum(If(gender='F',1,0))

(Count(All) - Sum(If(gender='E',1,0))) / Count(All)

or (Count(All) - Sum(If(gender='F',1,0))) / Count(All)

Not applicable
Author

Use 3 expressions in your gauge chart:

1: Total count of customers

2: Count of customers where gender is F

3: 2/1

Promote expression 3 to be the first expression shown

That should work, i guess

Not applicable
Author

Thank you for responses.

All of them are working correctly...