Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Dimensions

Hi All,

Can some on please tell me how can i add calulated dimension matching mltiple criteria?

For example show all cities whr cd =1, 2,3

I tried this but it will not work because it will concatenate all the matching values      CONCAT(DISTINCT {<cd={1,2,3}>} City,',')

10 Replies
Not applicable
Author

Hi Sunny,

Try this .if(Match(cd,1,2,3), City)

Thank you

Vardhan

preminqlik
Specialist II
Specialist II

try this ------In dimension :

if(Cd=1 or Cd=2 or Cd=3 ,City)

senpradip007
Specialist III
Specialist III

try this:

if( cd < 4, City)

Not applicable
Author

Hi Pradip/Prem,

Sorry i forget to add that numbers will not be in order and they are not fix . It can also be text 
Thanks

rsdhavle
Creator II
Creator II

If


( Match(Cd, '1', '2', '3'), DISTINCT  City)

Try this

Not applicable
Author

HI

PFA...Hope this will helps you

Regards

Nirmal

Not applicable
Author

can you attach some sample

Not applicable
Author

Hi All

Please find the sample file attached.

What i am trying to do is as soon as i click on city Delhi in next chart it should show all sp who's id matches with city's id. For example for Delhi id is 1 ,2 , 4 so I want all sp and count with id 1,2,4 in second chart

tresesco
MVP
MVP

Not sure if understood right. May be you just need to take ID/sp as dimension, like in attached sample. PFA