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

Alternate States Question

I had a question related to alternate states. I have a chart with an alternate state set to State1. I can reference the selections in the parent state using set analysis, i.e. Month = $::Month

How do I reference selections in the parent state in a function, in this case to dynamically set the label on this chart? This will refer to values of myFlag only in State1.

=If(Only(myFlag), 'Actual', 'Actual and Forecast')

3 Replies
simondachstr
Luminary Alumni
Luminary Alumni

Try


=If(Only({State1} myFlag), 'Actual', 'Actual and Forecast')

brentdej
Contributor II
Contributor II
Author

Thanks... how would I reference the parent though (rather than alternate state State1)?

brentdej
Contributor II
Contributor II
Author

Tried {$} and it worked. Thanks for the help, Martin.