Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
danosoft
Specialist
Specialist

Chart with set dimensions with variables

Hi i need to do a Chart with setting dimensions with some variables; i wanna change my dimensions and expression at runtime changing my variables.

For example i have trhee Variables:  varone, vartwo, varthree

i wanna to change dimensions and selected expressions when i change the vars's values (for example with a listbox or bottons)

look at the picture

qlikvar.jpg

 

 

1 Solution

Accepted Solutions
danosoft
Specialist
Specialist
Author

Thanks this is an interesting idea, but in reality it not reply to my question.

But i tried something and i find the solution using this variable for example:

SET varFirDimension = 'DinFirDimension';

tableDynamicOne:
LOAD RecNo() as %ID,
SubField(string,'-') as DinFirDimension
Inline [
string
one-two-three-four
];

and in the dimension of my chart i use:  =$(='[' & $(varFirDimension) & ']') 

View solution in original post

2 Replies
zhadrakas
Specialist II
Specialist II

check the appended .qvw for an idea how to solve that.

see tab "Reports"

regards

tim

danosoft
Specialist
Specialist
Author

Thanks this is an interesting idea, but in reality it not reply to my question.

But i tried something and i find the solution using this variable for example:

SET varFirDimension = 'DinFirDimension';

tableDynamicOne:
LOAD RecNo() as %ID,
SubField(string,'-') as DinFirDimension
Inline [
string
one-two-three-four
];

and in the dimension of my chart i use:  =$(='[' & $(varFirDimension) & ']')