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

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

Switching Dimensions with $Field

Hi there,

I'm trying to get a chart Dimension to be variable based on a table selection. Because the various 'dimensions' can change or be added to frequently I want to avoid creating a 'conditional dimension' for every one, which is how I've done it in the past.

The image below shows how far I've got - but it isn't quite working. Any suggestions? I want it to look like the chart at the bottom, with the option of changing.

Thanks very much,

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Or, simply =$(=[$Field])            // works when single value to be selected

For multiple selections you have to use a bit of tricks: all fields in the dimnesions with conditional enablement.

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Use Calculated Dimension

=$(=GetFieldSelections([$Field]))

simondachstr
Specialist III
Specialist III

Try ='$($(='=Only($Field)'))' as dimension.

tresesco
MVP
MVP

Or, simply =$(=[$Field])            // works when single value to be selected

For multiple selections you have to use a bit of tricks: all fields in the dimnesions with conditional enablement.

simondachstr
Specialist III
Specialist III

Good one! I guess I lost myself in scripting