Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
janwillem
Contributor
Contributor

Unique employees per year next to multiple dimensions

Hi,

At the moment I am working on a graph that shows the percentage of employees that leave our company per age group.

When I calculate the number of unique employees per year to show the percentage only one age group appears in the graph.

I made a table to see what happens. When I use the expression count({<EmployeeNumber= {"*"}-{0}, AgeGroup=,WorkingYears=>} DISTINCT EmployeeNumberonly one age group has the number of unique employees.

Which expression do I need to use to see the number of unique employees at every age group?

Thanks in advance!

Jan Willem Tiemessen

1 Solution

Accepted Solutions
neelamsaroha157
Specialist II
Specialist II

If you are using Aggr() function then use NODISTINCT with it.

like Aggr(NODISTINCT Count(Distinct EmployeeNumber), Year).

You can add your set expression to it as needed.

View solution in original post

3 Replies
sunny_talwar

Are you using an Aggr() function somewhere

neelamsaroha157
Specialist II
Specialist II

If you are using Aggr() function then use NODISTINCT with it.

like Aggr(NODISTINCT Count(Distinct EmployeeNumber), Year).

You can add your set expression to it as needed.

janwillem
Contributor
Contributor
Author

NODISTINCT is the solution! Thanks!