Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Logic Help

hi All,

I have one temperature field which have value against every sensor.

i am calculating min(Temp) and Max(Temp) so i am getting one value against without any selection.

Now i want when i am not selecting sensor it should not give me any Value.

i mean Min(Temp) and Max(Temp) should be blank.

how i can do this.

thanks

3 Replies
sunny_talwar

May be this:

If(GetSelectedCount(Sensor) > 0, Min(Temp))

If(GetSelectedCount(Sensor) > 0, Max(Temp))

mjm
Employee
Employee

Hello Abhay,

further to Sunny T's response you should use the if statement like this:

If(GetSelectedCount(Sensor) > 0,1,0)


This should be used within the calculation condition of the properties of the chart object. This basically will then only return the calculations once the condition in the if statement is met.


If this response is helpful, please mark this as helpful and a correct answer.

Kushal_Chawda

try,

If(GetSelectedCount(Sensor) =0,0, YourExpression)