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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alexis
Partner - Specialist
Partner - Specialist

Alternate State Selections

Hi

I am using Alternate States in Qlik Sense via Filter Panes and I need to show the selections that the use has made in each of the filter panes as part of the heading of a chart.

In the example below, you can see 2 sets of filter panes ones for each Alternate State ("Set 1"  and "Set 2").  In this example take the "Year" for example its a dimension called "DispatchDate" for both sets, the top is Set 1 and the bottom Set 2. Once I have made my selections (for example 2018 for Set 1 and 2017 for Set 2) the user cannot see what the bars in the chart below represent - it would be great to include the selections of each set as part of a heading or in a text box alongside the chart, e.g. "Comparative Analysis by Station (2018 vs. 2017) in this example - does anyone know how I can extract the selections made in each set?


Comparative Analysis.jpg

 

Labels (2)
1 Solution

Accepted Solutions
agigliotti
MVP
MVP

you can use GetCurrentSelection function as below:
=GetCurrentSelections(',',',',',','10','Set 1')
i hope it can help.
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

you can use GetCurrentSelection function as below:
=GetCurrentSelections(',',',',',','10','Set 1')
i hope it can help.
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
alexis
Partner - Specialist
Partner - Specialist
Author

Dear Agigliotti

EXCELLENT response. Based on your reply I fine-tuned the code a little to:

= GetCurrentSelections('>'&chr(10),': <',',','10','Set 1')

to produce this which is EXACTLY what I wanted - THANKS!

Comparative AnalysisSelections2.jpg

agigliotti
MVP
MVP

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