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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cfountain72
Creator II
Creator II

Adding '>=' OR '<=' Variable to Set Analysis

Good Morning,

I am trying to insert a variable representing greater than or less then ('>=' or '<=') into a set analysis expression. The default section is:

EVS_OVERALL_TURN_TIME={"<=$(=fractile({<EVS_InpCleanFlag= {'1'}>}EVS_OVERALL_TURN_TIME, $(v_Outlier_ile)))"}>}EVS_OVERALL_TURN_TIME)

What I want to do is allow the user to decide if they want to include values greater than or less than a value by selecting a variable value v_above_below to be >= or <=, but I don't know how the syntax would work...or even if it can work. It would be something like this:

EVS_OVERALL_TURN_TIME={"$(v_above_below)""$(=fractile({<EVS_InpCleanFlag= {'1'}>}EVS_OVERALL_TURN_TIME, $(v_Outlier_ile)))"}>}EVS_OVERALL_TURN_TIME)

Any suggestions? Or a different way to go about it? There a several expressions, so doing a bunch of if/then's isn't really practical in this case.

Thanks in advance for your help,

Chris

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

I imagine this would work. I think the syntax would be:

EVS_OVERALL_TURN_TIME={"$(v_above_below)$(=fractile({<EVS_InpCleanFlag= {'1'}>}EVS_OVERALL_TURN_TIME, $(v_Outlier_ile)))"}>}EVS_OVERALL_TURN_TIME)

-Rob

View solution in original post

2 Replies
rwunderlich
MVP
MVP

I imagine this would work. I think the syntax would be:

EVS_OVERALL_TURN_TIME={"$(v_above_below)$(=fractile({<EVS_InpCleanFlag= {'1'}>}EVS_OVERALL_TURN_TIME, $(v_Outlier_ile)))"}>}EVS_OVERALL_TURN_TIME)

-Rob

cfountain72
Creator II
Creator II
Author

Thanks Rob!  You da man! I guess I was just overcomplicating it, assuming there had to be some kind of punctuation between the variable and the next portion of the expression. Awesome!