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: 
Tian-Jay
Contributor II
Contributor II

Cant call a variable in a Chart

Hello, ive set up a variable as per Using the Variable Extension in Qlik Sense | VizMind. However everytime i try to call this variable in a chart i just get Invalid Dimension. my variable is called vDimension, i have set this up in the Qliksense Dashboard bundle - Variable Input, and have given it two Values, which are two columns from my data (however i get invalid Dimension regardless of the data contained). Im calling to the variable on the chart in the Field section using $(vDimension) and i just get errors, can anybody help?

i have followed the guide step for step

Labels (1)
1 Solution

Accepted Solutions
Gabbar
Specialist
Specialist

There is no definition of the variable, if you want a variable to work as a dimension in UI, it must be aggregated over some other dimension, otherwise it is can be used as a measure only and thus using it as a dimension generates that error.

View solution in original post

4 Replies
Anil_Babu_Samineni

Any error message or screenshot?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Tian-Jay
Contributor II
Contributor II
Author

TianJay_0-1699775016416.png

this is what i have written in my chart

TianJay_1-1699775039602.png

this is just the variable

TianJay_2-1699775071342.png

this is what is written in the qlik dashboard variable input box

 

 

 

 

Gabbar
Specialist
Specialist

There is no definition of the variable, if you want a variable to work as a dimension in UI, it must be aggregated over some other dimension, otherwise it is can be used as a measure only and thus using it as a dimension generates that error.

Tian-Jay
Contributor II
Contributor II
Author

okay thank you! Could you direct me to any resources for how to do that? or alternatively send the code for doing this?