Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show value conditionally

Hi,

I have a requirement to show Employee cost only if the number of employees in that project are higher than 5.

It is posible to find the distinct employee count but need help to find the distinct employee count in project?

if(Count( distinct EmployeeId)>5,$(CostOwn),0)

Thanks in advance,

Rahul

1 Solution

Accepted Solutions
Not applicable
Author

i have found one expression as below but it's still under testing.

=sum (aggr(if(Count(distinct EmployeeId)>5,$(CostOwn) ,0),ProjectId))

View solution in original post

2 Replies
Not applicable
Author

i have found one expression as below but it's still under testing.

=sum (aggr(if(Count(distinct EmployeeId)>5,$(CostOwn) ,0),ProjectId))

Nicole-Smith

To find a count in a project, there are two ways you could do it:

1.  If Project is one of your dimensions, it will automatically find the count for just that project.

2.  Use aggr() around your count function with Project as the dimension:  aggr(Count(distinct EmployeeId), Project)