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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
pduplessis
Partner - Contributor III
Partner - Contributor III

If statement to evaluate in interval

In a load script I was hoping there would be a quick way to determine whether a numeric value falls within a range.

Something like

if( 0> myfield <1, 'BetweenZeroOne', 'NotBetween') as myfield2

something like inDay() which "returns true if timestamp lies inside the part of day containing basetimestamp up until and including the exact millisecond of basetimestamp".

1 Solution

Accepted Solutions
Not applicable

hi,

try out this.

load myfield,if( myfield>=0 and myfield<=1, 'BetweenZeroOne', 'NotBetween') as myfield2

thanks

View solution in original post

2 Replies
Not applicable

hi,

try out this.

load myfield,if( myfield>=0 and myfield<=1, 'BetweenZeroOne', 'NotBetween') as myfield2

thanks

Not applicable

hi,

try out this.

load myfield,if( myfield>0 and myfield<1, 'BetweenZeroOne', 'NotBetween') as myfield2

thanks