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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Chart implementation with condition

Hi there,

I have two text box ,

req.PNG

When click one text box, I need to show chart with expression .

So created a variable vSelect1

Expression1 :

sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vMinReportingDate)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS])

exp1.PNG

and when the other text box is selected, the below expression need to work

sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vFYStart)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS])

exp2.PNG

and dimension : PPH_condition

dim.PNG

 

I used conditional expression : GetSelectedCount(vSelect1) = 1 , but its not working.

Please assist with suggestion.

1 Solution

Accepted Solutions
MayilVahanan

HI @ashmitp869 

I hope you have trigger to assign the value to the variable (vSelect1) when you select the text box.

In that case, try like below

In Conditional tab.

vSelect1 =1 

or you can try one expression by using if condition something like

If(vSelect1 =1, sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vMinReportingDate)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS]),

sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vFYStart)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS]))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

HI @ashmitp869 

I hope you have trigger to assign the value to the variable (vSelect1) when you select the text box.

In that case, try like below

In Conditional tab.

vSelect1 =1 

or you can try one expression by using if condition something like

If(vSelect1 =1, sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vMinReportingDate)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS]),

sum({$<Measure_PPH={1},Month=,MonthYear=,[Date]={">=$(=vFYStart)<=$(=vMaxReportingDate)"}>} [AP.Measure_LOS]))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.