Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ignore Selections in Expressions

Hi all,

I have an expression written below that works as expected to show my top Sales man

I would like it to ignore selections from the Salesman field so that the top salesman is always the same. I have tried adding different things to my expression to ignore selections on the Salesman field, but it doesn't work as expected.

Any ideas please.

concat(aggr(if(rank(Sum(Actual)/Sum(Budget)) =1, Salesman),Salesman))

Thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Try

=Concat(DISTINCT {1<Salesman= {"=Rank(SUM({<Salesman>}Actual)/SUM({<Salesman>}Budget))=1"}>}Salesman,',')

View solution in original post

9 Replies
stigchel
Partner - Master
Partner - Master

Try with

concat({<Salesman>} aggr(if(rank(Sum({<Salesman>} Actual)/Sum({<Salesman>} Budget)) =1, Salesman),Salesman))

simenkg
Specialist
Specialist

How about:


concat({<Salesman=>} aggr(if(rank(Sum({<Salesman=>} Actual)/Sum({<Salesman=>} Budget)) =1, Salesman),Salesman))

miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Razor,

Have you tried to put set analysis indicator before Salesman? If not, make your expression like this:

concat(aggr(if(rank(Sum(Actual)/Sum(Budget)) =1, {1} Salesman), {1} Salesman))

Not applicable
Author

Thanks for all the replies.

I have tried them all and still no luck unfortunately

stephenedberkg
Creator III
Creator III

use alternative state

sasiparupudi1
Master III
Master III

How about

concat({1<Salesman=>} aggr(if(rank(Sum({1<Salesman=>} Actual)/Sum({1<Salesman=>} Budget)) =1, Salesman),Salesman))

MK_QSL
MVP
MVP

Try

=Concat(DISTINCT {1<Salesman= {"=Rank(SUM({<Salesman>}Actual)/SUM({<Salesman>}Budget))=1"}>}Salesman,',')

kuczynska
Creator III
Creator III

I was trying to solve very similar issue not long time ago and found the below solution (thanks to Qlik Community!).

My goal was to present the name of the top customer and the associated amount in the text object:

FirstSortedValue(CUSTOMER_NAME,( -aggr( sum(AMOUNT), CUSTOMER_NAME))) 
& ':   ' &
Max( aggr(sum(AMOUNT), CUSTOMER_NAME))

Maybe this will help. You can of course add all qualifier {1} into your SUM() functions to present this as a static value.

Not applicable
Author

Thanks Manish and to everyone else who replied