Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Changing according with the selection of input box. ?

Hi All,

I have to change the chart display depending on user selection if the user wants to view median or average from input box.

How to write the expression in chart display - if Median selected then expression will be Median([Measure_LOS]) or when Average selected expression will be Average([Measure_LOS]) ?

I used variable in dimension : vLOSDisplay

In script :

set vLOSDisplayList='Median,Average';
set vLOSDisplay='Median';

 

Regards

 

Labels (1)
1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

the simplest way is to define both expressions. Use the conditional property on each expression as

'$(vLOSDisplay)' = 'Median'

'$(vLOSDisplay)' = 'Average'

-Rob