Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
LouisJ
Contributor II
Contributor II

Every value from a specific field, while ignoring other fields selections

Hello,

Is there any way to get every value from a specific field, while ignoring other fields selections ?

For example I have [Type], [Location], [Date], [Time of Completion].

I would like to have a KPI block show the average [Time of Completion], for the selected [Type] (can be multiple), but this average should not change when [Location]/[Date] gets further selected (unless a [Location] removes a [Type] for example).

So if I had 2 possible [Type] values, the average should have 3 only possible values :

- [Type] 1 global [Location]&[Date] average on [Time of Completion]

- [Type] 2 '''''''

- [Type] 1 and 2 ''''''''''''

Thanks in advance,

LJ

Labels (3)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@LouisJ Please correct me if I am wrong. As per my understanding, you can use set analysis to get the desired result.

Avg({<[Type]={'Value1','Value2'}, [Location] =, [Date]=  >}[Time of Completion])

Field_name= will ignore any selection

If this resolves your issue please like and accept it as a solution, else let me know if you need anything else.

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@LouisJ Please correct me if I am wrong. As per my understanding, you can use set analysis to get the desired result.

Avg({<[Type]={'Value1','Value2'}, [Location] =, [Date]=  >}[Time of Completion])

Field_name= will ignore any selection

If this resolves your issue please like and accept it as a solution, else let me know if you need anything else.

LouisJ
Contributor II
Contributor II
Author

Hi, thanks for the input, that looks very promissing, could it be possible to make this formula dynamic by replacing [Type]={'Value1','Value2'} by some expression signifing "take values from the all possible types according to the users selection" ?

Something like : [Type]={'GetFieldSelections([Type])'} ? (but that works, I'm having trouble with set analysis syntax ...)

LouisJ
Contributor II
Contributor II
Author

Ok it works ! I just had to replace the constant values by the field again !

Avg({<[Type]=[Type], [Location] =, [Date]=  >}[Time of Completion])

Thanks a lot for your help!

LJ