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: 
Anonymous
Not applicable

Aggr set analysis

Hello Guys !

I want to make a expression, which need be fixed, even if i select a value. Here what i have:

FirstSortedValue (Distinct (Roteiro), -Aggr( count({1<evento={"Saida"}, Roteiro>}visitado) / count({1}Planejado) ,Roteiro))

So what i want is the first value. If i select something, it cant filter. I've tried to insert {1} in many places, but didnt worked.

How can we solve it?

Thanks !

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Try putting it with firstsortedvalue like:

FirstSortedValue ({1}Distinct (Roteiro), -Aggr( count({1<evento={"Saida"}, Roteiro>}visitado) / count({1}Planejado) ,Roteiro))


Hope this helps!

View solution in original post

2 Replies
jerem1234
Specialist II
Specialist II

Try putting it with firstsortedvalue like:

FirstSortedValue ({1}Distinct (Roteiro), -Aggr( count({1<evento={"Saida"}, Roteiro>}visitado) / count({1}Planejado) ,Roteiro))


Hope this helps!

Anonymous
Not applicable
Author

Hello Jeremiah Kurpat,

It worked. Thanks a lot !

Morandi