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: 
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
MVP
MVP

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))
IPC Global: ipc-global.com
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
MVP
MVP

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))