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: 
Snorlaire
Contributor
Contributor

Genderdistribution within a cluster.

Hey!

I am trying to create a view that shows the gender distribution within a cluster.
The dataset that I'm using for this has employees connected to clusters, but I am unable to split the genders.

bc11720de8e0cf97beab04683671b224.png

So the end goal is this, but all I am getting is a count of male and female together, instead of them being split.


Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra
MVP
MVP

@Snorlaire  if I understood correctly, you have to add this set to your expression...
for men

{<Gender={'M'}>}

for women

{<Gender={'F'}>}

for example count({<Gender={'F'}>} NationalIDNumber) ....

if not, can you share the expected output from this sample (if possible a sample in excel or text format)

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra
MVP
MVP

can you share a sample data ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Snorlaire
Contributor
Contributor
Author

This is the data used. It is a view pulled from the Adventurework sample database by Microsoft. 

b87df646bfa1390020fd6bf60fccfb3e.png

 

I am unsure if the picture added to this message is readable, so Ive attached the same file to the message.

Taoufiq_Zarra
MVP
MVP

@Snorlaire  if I understood correctly, you have to add this set to your expression...
for men

{<Gender={'M'}>}

for women

{<Gender={'F'}>}

for example count({<Gender={'F'}>} NationalIDNumber) ....

if not, can you share the expected output from this sample (if possible a sample in excel or text format)

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉