Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
How to write the condition in the Expression in Qlikview
Region in ('LA','NJ','AK')
I am getting error if i am using the in condition in listbox.
Hello, XXX
You can to use a match() function, like as:
IF(Match(Region, 'LA', 'NJ', 'AK') > 0, City)
HI XXX,
You can use set analysis to write this expression like
{$<Region={'LA','NJ','AK'}>}
Regards
Sunil
Hi Sunil,
It is not working. Sorry for not mentioning the complete scenario.Actually i am trying like this. List box should show the city of the mention regions
If ({$<Region={'LA','NJ','AK'}>},City)
Hi,
In that case you can try : If(Region='LA' OR Region='NJ' OR Region='AK', City)
Regards, tresesco
HI XXX,
I don't think you can write an expression as dimension.
If you want to do like this you can change these thing in the Load script editor..
Like
if
((Region='LA' or 'JN' or 'AK'),cITY) AS Sp_REGION
Regards
Sunil
Hello, XXX
You can to use a match() function, like as:
IF(Match(Region, 'LA', 'NJ', 'AK') > 0, City)
Thanks Sunil,tresco, Sparur for the solution . It is working as expected.