Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous selection

Hi,

i know the statement getcurrentselection() ... But is it possible to get something like "getPREVIOSselection()" ???

Thank you

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

No function like that, but the set expression selection $1 uses the previous selection, for example

     Sum({$1} Sales)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Try that with the concat  statement

     Concat({$1} Distinct Year, ', ')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

I need the previous selction about everything...

jonathandienst
Partner - Champion III
Partner - Champion III

No easy way to do that, because there is no built in statement. You may not need everything, just the usual selection fields in your model, and you can combine muliple Concat() statements

  Concat({$1} Distinct Year, ', ')  & '; ' & Concat({$1} Distinct Month, ', ') & .....

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein