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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
hugmarcel
Specialist
Specialist

Transform variable content into chart diagram

Hi 
I have a variable vList with content: 
'A;B;C;D¬1;2;3:4¬5;6:7;8' 
I want to display the content of vList in a diagram with A,B,C,D as Dimension members ("column headers") and numbers values below ("formulas"
😞 
A B C D 
1 2 3 4
5 6 7 8
How Can I achieve this without using of script?
Thank you and regards! Marcel

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

3 Replies
marcus_sommer
MVP
MVP

You could use a straight-table with a calculated dimension like:

=valuelist(1,2,3)

which visibility is hidden as well as totals and column-header are disabled.

As one of your four expression you might use something like this:

=Pick(rowno(total),
  $(y(x, 1, 1)),
  $(y(x, 2, 1)),
  $(y(x, 3, 1)))

and y is defined like:

subfield(subfield($1, '¬', $2), ';', $3)

and it results in:

CreateChartFromAVariable.JPG

- Marcus

 

hugmarcel
Specialist
Specialist
Author

Thank you, great!

I have experimented using value_list as well, but did not manage to pass the values to the formula expressions!

It looks like you have implemented this in a qvw, is it possible to get the qvw?

Thx a lot! Marcel

marcus_sommer
MVP
MVP

Here it is.