Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
anson_kong
Contributor II
Contributor II

ignore selection in firstsortedvalue()

hi all,

If I click the selection 'Store A', the Text Value in StoreB and StoreC is changed to null.

I would like to ignore the selection (Store) in my expression ,

the existing formula

=firstsortedvalue(TextValue,-(aggr(sum(Amount),Store,TextValue)))

StoreText Value
Ahjk
Boiu
Cqwe

thank you

1 Solution

Accepted Solutions
agigliotti
MVP
MVP

let's try as below:

=firstsortedvalue( {< Store= >} TextValue,-(aggr(sum( {< Store= >} Amount),Store,TextValue)))

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

4 Replies
agigliotti
MVP
MVP

let's try as below:

=firstsortedvalue( {< Store= >} TextValue,-(aggr(sum( {< Store= >} Amount),Store,TextValue)))

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
YoussefBelloum
Champion
Champion

Hi,

try this:

=firstsortedvalue(TextValue,-(aggr(sum({<Store>}Amount),Store,TextValue)))

anson_kong
Contributor II
Contributor II
Author

it works

thank you

agigliotti
MVP
MVP

please close the thread marking the answer as correct to help other people.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it