Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Bran-d
Contributor
Contributor

Dynamic Reference line for chart

I want to add logic to my reference line in a chart where if somebody selects X, Y, or Z within the filter APPN, then display Max([Obligation Benchmark %]) as the reference line, but if none or more than one of the filter options are selected, then do not show the reference line. Can someone please write out how this should look when inputting into the reference line expression editor?

Labels (1)
2 Replies
Mark_Little
Luminary
Luminary

Hi @Bran-d 

Probably something a long the lines of

IF( GetFieldSelections(APPN) = 'X' OR GetFieldSelections(APPN) = 'X' OR GetFieldSelections(APPN) = 'Z' ,

Max([Obligation Benchmark %]) )

Bran-d
Contributor
Contributor
Author

Worked like a charm, thanks so much!!