Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Qlikview Experts,
What is the correct syntax for calculated dimension to check if a text contain specific words? I wanted to create a bar chart with data
looks like below, I have used 'Type' as my first dimension, follow with a calculated dimension and my expression is :Value.
I want to modify my calculated dimension such that when 'Product' = Equipment / (Any text contains 'Pen' )
My calculated dimension is: "=if(Match(Product ,'Equipment','*Pen*'), Product) " But it does not work
(It works if I key in full text, but I need to deal with a large amount of text in future and most of them contains 'Pen')
I had also attached a sample of testing qvw for your reference. Thank you for your help in advance!
Best Regards
Hi Zhang,
Try this, May b it will work
=if(WildMatch(Product ,'Equipment','*Pen*'), Product)
Regards,
Jayshri
I tried it with a classic SetAnalysis
Hi Zhang,
Try this, May b it will work
=if(WildMatch(Product ,'Equipment','*Pen*'), Product)
Regards,
Jayshri
Can you try with wild match?
if(WildMatch(Product ,'Equipment','*Pen*'), Product)
Dear Jayshri,
It works like a charm! Thank you so much!
Best Regards
QianNing
Dear Shivesh,
It works! Thank you!
Best Regards
QianNing
Welcome QianNing