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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated dimension with multiple if statements

I want to show a single calculated dimension which meets the following conditions :

IF BUSINESS_UNIT ='SALES'

IF REGION LIKE 'AMERICAS*',

IF SALESPERSON LIKE 'JOHN*',

Need some help constructing this statement with the correct syntax please.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

try

if (match(BUSINESS_UNIT,'SALES')>0 and match(REGION, 'AMERICAS')>0 and match(SALESPERSON, 'JOHN')>0, yourcalulateddimension)

View solution in original post

5 Replies
Anonymous
Not applicable
Author

try

if (match(BUSINESS_UNIT,'SALES')>0 and match(REGION, 'AMERICAS')>0 and match(SALESPERSON, 'JOHN')>0, yourcalulateddimension)

Not applicable
Author

Awesome thanks. On the presentation side is there an easy way of hiding the dimension and expression labels ?

Anonymous
Not applicable
Author

on either tab Dimension and Expression you may untick the Labels (or give own descriptions)

Not applicable
Author

Sure, mine is showing as greyed out in the dimensions tab though

Anonymous
Not applicable
Author

it depends on the Chart type. a Pivot table you may Change the description but you cannot be without Label (you may define an empty text). in a barchart you may design your Chart without a label