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: 
maxime66
Creator
Creator

Use same expression in many graphics

Hi !!

How to use the same expression in many graphics ? without copy and paste the all expression (just using an  ID or Label ...)

I tried using variables , but they don't adapt to different dimensions ...

Thanx !

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you put an expression in a variable for reuse in different chart then make sure the expression in the variable does not start with an '=' character. Otherwise the expression will be evaluated at the document level instead of in the context of the object it is used in. You can use an expression in a variable in a chart expression by applying dollar expansion: $(vMyExpressionVariable)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you put an expression in a variable for reuse in different chart then make sure the expression in the variable does not start with an '=' character. Otherwise the expression will be evaluated at the document level instead of in the context of the object it is used in. You can use an expression in a variable in a chart expression by applying dollar expansion: $(vMyExpressionVariable)


talk is cheap, supply exceeds demand
buzzy996
Master II
Master II

place it ur expression in variable and use the variable wherever  u need,this the best way i believes.

maxime66
Creator
Creator
Author

Works perfectly !

thx