Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Dimension

HI All ,

In the bar chart Under dimension  from Product Field i want to displace only two products Resistivity and sensitivty

Please let me know if iam using correct formula ?

=if(Match(Product,'Gillet' ,'oldSpice'),Product)

for the above expression iam geting only Gillet but not oldspice.

1 Solution

Accepted Solutions
its_anandrjs

Try to check the spellings of the Gillet and oldSpice in the field Product or may be you can use if condition as calculated dimension that i suggest or you can use WildMatch also here.


can you provide the list of Product field items for look out.

Regards

Anand

View solution in original post

15 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi

Try wildmatch function instead of match.

Also include * before and after value

Regards,

Kaushik solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Chanty4u
MVP
MVP

=if(WildMatch(Product, '*Gillet*', '*oldSpice*'), 'product') as NewField

smilingjohn
Specialist
Specialist
Author

Iam trying this under dimension  of bar chart .

So i think i cannot use AS

its_anandrjs

Hi,

Your expression is correct

=if(Match(Product,'Gillet' ,'oldSpice'),Product)

You can try this also

=if(Product = 'Gillet' , 'Gillet',

if(Product = 'oldSpice' , 'oldSpice'))

And use suppress when value is null

Regards

Anand

Chanty4u
MVP
MVP

yes u can create a flag in back end and u can get directly..

smilingjohn
Specialist
Specialist
Author

Hi Kaushik,

Iam trying to use this in a bar chart under Dimensions "Add Calculated Dimension" ?so how do i use

smilingjohn
Specialist
Specialist
Author

Hi Anand thanks for your reply

I tried your expression too but yet its diplaying only Gillete , its not displaying both

Actually ther are 7 productins in that field out of which i want to display only 2 products in the bar graph

Kushal_Chawda

try this

if(Match(lower(trim(Product)),'gillet' ,'oldspice'),Product)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this way,

=if(wildMatch(Product,'*Gillet*' ,'*oldSpice*),Product)


Regards,

Kaushik solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!