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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
pauldamen
Partner - Creator II
Partner - Creator II

Only use dimension with value

Hi,

I have a graph were I divide the number of hours with the number of people (in printscreen see top line chart)

What you see in my listbox on the left I have 8 people. But only 4 with hours (see bottom table). Now it divides the number of hours with 8 people. What I need is that the number of hours is divided by only people who have hours. How can I achieve this?

Regards, Paul

1 Solution

Accepted Solutions
sunny_talwar

You have not shared your expression, but based on some assumptions, try this:

=Sum({<TypeUrenHoofdcategorie = {'Productief'}>} Uren)/Count(DISTINCT {<Finexter = {"=Sum({<TypeUrenHoofdcategorie = {'Productief'}>} Uren) > 0"}>} Finexter)

View solution in original post

2 Replies
sunny_talwar

You have not shared your expression, but based on some assumptions, try this:

=Sum({<TypeUrenHoofdcategorie = {'Productief'}>} Uren)/Count(DISTINCT {<Finexter = {"=Sum({<TypeUrenHoofdcategorie = {'Productief'}>} Uren) > 0"}>} Finexter)

pauldamen
Partner - Creator II
Partner - Creator II
Author

Thanks Sunny, works great!