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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alespooletto
Creator II
Creator II

Measure that takes a specific value only

Hello.

I have this measure that does a calculation for all employees, and then changes for specific employee when I select. But I want another measure that doesn't change when I select an employee and remains the same.

 

AvG( Aggr({< Weekday = {'Lu', 'Ma', 'Me', 'Gi','Ve'} >} Availability, Date))

 

I tried to put Employee (the field with employee name in) but it still changes.

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

Each part of a nested aggregation may need a set statement to consider the same or an adjusted selection state, like:

avg({set statement} aggr({set statement} count({set statement} Field), Dim))

View solution in original post

3 Replies
igoralcantara
Partner Ambassador/MVP
Partner Ambassador/MVP

Have you try this?

AvG( Aggr({< Weekday = {'Lu', 'Ma', 'Me', 'Gi','Ve'}, Employee= >} Availability, Date))
Check out my latest posts at datavoyagers.net
alespooletto
Creator II
Creator II
Author

Thank you, I did try it and it seems it still changes when I select a specific user.

 

marcus_sommer

Each part of a nested aggregation may need a set statement to consider the same or an adjusted selection state, like:

avg({set statement} aggr({set statement} count({set statement} Field), Dim))