Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
deguza
Contributor II
Contributor II

Multiple sets for a measure

Hello all,

I have the following expression to choose only three programs for clients. It generates no error message but won't get me any results...

What is wrong with the following expression?

=avg({<[Begin Date]={">=2022-01-01"},[Program]={"='Swimming'"}>} [LengthOfStay])

After I get this working, I will add "Judo" into the program set. What should the expression be for that?

Thanks,

Deguza

 

Labels (2)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@deguza  Please use the below expression

=avg({<[Begin Date]={">=2022-01-01"},[Program]={'Swimming'}>} [LengthOfStay])

If you want to add "JUDO" then you may use the below expression.

=avg({<[Begin Date]={">=2022-01-01"},[Program]={'Swimming','Judo'}>} [LengthOfStay])

View solution in original post

2 Replies
sidhiq91
Specialist II
Specialist II

@deguza  Please use the below expression

=avg({<[Begin Date]={">=2022-01-01"},[Program]={'Swimming'}>} [LengthOfStay])

If you want to add "JUDO" then you may use the below expression.

=avg({<[Begin Date]={">=2022-01-01"},[Program]={'Swimming','Judo'}>} [LengthOfStay])

deguza
Contributor II
Contributor II
Author

Thank you!

 

Deguza