Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

calculated dimension to filter values

Hi All,

I am trying to create a calculated dimension to show only few values in straight table.

In the Name field, I want to filter any value starting with *classic. Eg- *Classic Edu, *Classic Tours, *Classic Agen etc..

But the below expression is still showing them. It filters out the above values only when i put full name like *Classic Edu. But i want to filter out all when Name start with *Classic in my straight table.

Below is the calculated dimension i am using-

=if(Name<>'*Classic*',Name)

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

if(wildmatch(Name, '*classic*'), null(), Name)

View solution in original post

5 Replies
maxgro
MVP
MVP

if(wildmatch(Name, '*classic*'), null(), Name)

senpradip007
Specialist III
Specialist III

Use  if(not WildMatch( Name,'*Classic*'),Name) and check "Suppress When Value Is Null"

its_anandrjs
Champion III
Champion III

You can try with

if(wildmatch(Name, '*classic*'), 0, Name)


Or


if(wildmatch(Name, '*classic*'), null(), Name)

And Check the "Suppress when value is null" option in the chart




amit_saini
Master III
Master III

Hi Suraj,

Try this:

I'm taking example of year, suppose you want to display only 10,11 and 12 than use this

=if(match(Year,'2010','2011','2012' ),Year)

Thanks,

AS

surajap123
Creator III
Creator III
Author

Thanks everyone !!