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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated dimension question

Hi,

I'm trying to create a calculated dimension in a chart that will do the following:

If the SYS_ID = 'WIRE_DOMESTIC_1LINK' or 'WIRE_INTERNATIONAL_ 1LINK' then '1LINK WIRES'

I tried this:

=if("SYS_ID"='WIRE_DOMESTIC_1LINK','WIRE_INTERNATIONAL_1LINK',"1LINK WIRES") with no luck.

I don't want to have to deal with this in the load script but this is only applicable for one chart. I have other objects that display these values separately. Can I do something with set analysis?

Any help would be greatly appreciated.

Thanks,

Shannon

2 Replies
Not applicable
Author

Hello Shannon,

if you do not want to manage it during the load process try this as your dim:

=if(SYS_ID= 'WIRE_DOMESTIC_1LINK' or SYS_ID= 'WIRE_INTERNATIONAL_ 1LINK', '1LINK WIRES')


Note that my (one) Apostroph differ from yours.

HtH

Roland

Not applicable
Author

Very helpful - thanks for your response!