Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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')

Tags (2)
3 Replies
Highlighted
Luminary
Luminary

Re: Alternate States Question

Try


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

Highlighted
Contributor II
Contributor II

Re: Alternate States Question

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

Highlighted
Contributor II
Contributor II

Re: Alternate States Question

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