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

Filter on IF condition

Hi!

I have 2 fields: price and fakttext.

I want 4 last digits to be replaced with XXXX in case price is = 0. Today I'm using this:

if(price =0, mid(fakttext,1, len(fakttext)-4) & 'XXXX', fakttext) and it works good.

But now I don't want to apply my condition for some specific values.

IF price = 0 THEN XXXX BUT NOT FOR  'Japan',  'Sweden' etc.

BR,

Artur

 

Labels (3)
1 Solution

Accepted Solutions
MayilVahanan

Hi @Uri 

Try like below

If(Price = 0 and not wildmatch(Country, 'Japan', 'Sweden'), left(fakttext, len(fakttext)-4)&'XXXX', fakttext)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @Uri 

Try like below

If(Price = 0 and not wildmatch(Country, 'Japan', 'Sweden'), left(fakttext, len(fakttext)-4)&'XXXX', fakttext)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Uri
Creator
Creator
Author

Hi @MayilVahanan,

it works! Thank you.

BR,

Artur