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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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')

Labels (1)
3 Replies
simondachstr
Specialist III
Specialist III

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.