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: 
zwilson_borg
Contributor III
Contributor III

Using alternate state in condition for a calculated dimension

I need to use an alternate state's value of a field in the if statement condition of a calculated dimension. I've tried using combinations of sum, aggr, and only and haven't had much success. The basic idea of what I'm trying to do is if([Hierachy]='Division', [Division],[Unit]) - however, the [Hierarchy] is selected in a different alternate state than what the chart is being created against. 

 

Thank you in advance for your help!

1 Reply
jwjackso
Specialist III
Specialist III

Use the Concat function, it will return a string of selections from the Hierarchy dimension.

if (Concat({AlternateStateName}[Hierarchy]) = 'Division',[Division],[Unit])