Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
markgraham123
Specialist
Specialist

Using Match/Wild match to select fields from 100-300

Hi,

I'm trying to select only the points which are from 100-300 using Match in where condition.

Where

(Branch='ABC' and Match(Points, ' ')

Can anyone help pls.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Like this:

Where

(Branch='ABC' and Points >= 100 and Points <= 300)


talk is cheap, supply exceeds demand

View solution in original post

11 Replies
sunny_talwar

Not sure I understand Mark, would you be able to elaborate?

markgraham123
Specialist
Specialist
Author

Hi Sunny,

I wanna select the values from the field "Point".

It should be of the range 100-300 for Branch 'ABC'

So, i'm trying to use the below code. But not able to specify range ....

Where

(Branch='ABC' and Match(Points, ' ')

marcus_sommer

You mean something like this?

Where

Branch='ABC' and Points >= 100 and Points < 300

- Marcus

Gysbert_Wassenaar

Like this:

Where

(Branch='ABC' and Points >= 100 and Points <= 300)


talk is cheap, supply exceeds demand
markgraham123
Specialist
Specialist
Author

Hi,

I was trying to know is there any way to use Interval match or any other function other than using Greater than and less than symbols.

markgraham123
Specialist
Specialist
Author

Hi,

I was trying to know is there any way to use Interval match or any other function other than using Greater than and less than symbols.

marcus_sommer

You could use match(Points, 100,101,102, ...) or instead of match a mapping and applymap() or you could use a join-table as filter but what speaks against >= and <=?

- Marcus

jonathandienst
Partner - Champion III
Partner - Champion III

To use Match you would have to list all the possible symbols in the range 100 - 300, so I think the previous suggestions will work better, although you could use

    Where WildMatch(Points, '1??', '2??', '3??') as a condition

This will allow things like 1XY as well as numbers...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
marcus_sommer

Yea an interessting approach but shouldn't it be: WildMatch(Points, '1??', '2??', '300').

- Marcus