Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
MS90
Creator
Creator

Exclude range of numbers in dimensions at script level in qlik sense

In A dimension field I am having values from 1 to 100 and  I want to exclude values from 5 to 10 at script level.

4 Replies
marcus_sommer

Maybe: sign(match(Field,5,6,7,8,9,10)) as Flag and using it as where/selection filter or set analysis condition.

MS90
Creator
Creator
Author

Thanks for replying

But in dimensions the values are like example 5.1,5.2,5.3....9.8,9.9 I need to exclude all the values at script level itself

Or
MVP
MVP

Load *

From SomeTable

Where SomeField >= 5 and SomeField <10; // This assumes the values are numeric or can be converted to numbers

marcus_sommer

This might be solved with the following adjusting:

sign(match(floor(Field),5,6,7,8,9,10)) as Flag

or you change it to something like:

-(Field >=5 and Field < 11) as Flag