Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Applicable88
Creator III

Using Qlik-Switch to not show numbers with prefix in an If-Statement

Hello,

I have ordernumbers in a straight table. 

OrdernumberDate
123456712.09.2020
987456113.09.2020
258465814.09.2020
568741215.09.2020
963258416.09.2020
F88123417.09.2020
F88128918.09.2020
F88122519.09.2020

Now I want to use a QlikSwith, and when it turns on I want all numbers with the prefix 'F88*' not displayed, but the others stay displayed. 

I hope someone has Idea for an If-statement solution.

Thank you in advance!

 

1 Solution

Accepted Solutions
Applicable88
Creator III
Author

Hi,

once again I tried to negate the function with something like NOT WILDMATCH, but still didn't get the prefix filtered out. The "Not" is not returning the "opposite" of the wildmatch.

Instead I tried to equal the wildmatch with the null() function. 
Like this: =if(WildMatch([Ordernumber, 'F88*'),null(), 'F88-Numbers filtered')
That works as I wanted. 

Best.

View solution in original post

3 Replies
Waïl_Riachi_Sanofi

Hello,

For Example,

count({$<Ordernumber-= {"*F88"}>} Your Variable)

Or using variable : 

SET vF88= "*F88";

count({$<Ordernumber-= {$(vF88)}>} Your Variable)

 

Applicable88
Creator III
Author

Hi,

thanks for the quick reply, but I need a If-statement for that, because qlikswitch is like on and off. So like boolean kind of query. 

Applicable88
Creator III
Author

Hi,

once again I tried to negate the function with something like NOT WILDMATCH, but still didn't get the prefix filtered out. The "Not" is not returning the "opposite" of the wildmatch.

Instead I tried to equal the wildmatch with the null() function. 
Like this: =if(WildMatch([Ordernumber, 'F88*'),null(), 'F88-Numbers filtered')
That works as I wanted. 

Best.