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