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 Dimesion - Syntax

Hi i have a diagram whereby i wish to restrict my dataset to two values.

=if ([Tillv/köp-kod]= 3 and [Tillv/köp-kod] = 6, [Tillv/köp-kod])

however i see that in the column i recieve - as a value.

is the syntax potentially wrong?

Best,

Bradley

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

If you want only 3 and 6 value you can use

if(WildMatch([Tillv/köp-kod],'3','6'),field1) else if you want the range between 3 and 6 you can go with

if([Tillv/köp-kod]>=3 and [Tillv/köp-kod]<=6,field1)

View solution in original post

1 Reply
sivarajs
Specialist II
Specialist II

If you want only 3 and 6 value you can use

if(WildMatch([Tillv/köp-kod],'3','6'),field1) else if you want the range between 3 and 6 you can go with

if([Tillv/köp-kod]>=3 and [Tillv/köp-kod]<=6,field1)