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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abc_18
Creator II
Creator II

How to convert a if statement to set analysis expression

I have a if statement as below:-

if(longitude < 68.7 or latitude > 97.25,longitude), now I have to show data only where flag={'Y'} in front end expression.

How to convert this,  if statement to set analysis which include flag value as well?

I tried using only function, but didn't get the required output.

Regards

Labels (1)
1 Reply
MayilVahanan

Hi @abc_18 

If you are using in dimension , then try like below

Aggr(Only({<longitude ={"< 68.7"}, Flag ={1}>+ <latitude ={"> 97.25"}, Flag={1}>}longitude ), longitude )

or

if its and condition

Aggr(Only({<longitude ={"< 68.7"}, Flag ={1},latitude ={"> 97.25"}>}longitude ), longitude )

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