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: 
Anonymous
Not applicable

Help with idea

Hello,

I have 10 variables with score and 1 variable string.

I want to make chart like showen in picture.

I don't want to use 30 expressions.

Do you have any ideas how to do it?Capture.JPG

Please find my attached file.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try using a CROSSTABLE LOAD of your input data:

RESULT:

CrossTable (Dim1, Score,1) LOAD * resident Test$;

drop table Test$;

Then your chart is just a bar chart with dimensions Dim1, A and an expression like avg(Score). See also attached.

Regards,

Stefan

View solution in original post

5 Replies
swuehl
MVP
MVP

Try using a CROSSTABLE LOAD of your input data:

RESULT:

CrossTable (Dim1, Score,1) LOAD * resident Test$;

drop table Test$;

Then your chart is just a bar chart with dimensions Dim1, A and an expression like avg(Score). See also attached.

Regards,

Stefan

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Transform your data with the crosstable function

crosstable(Key,Value,1)

LOAD A,

     a,

     b,

     c,

     d,

     e,

     f,

     g,

     h,

     i,

     j

FROM

C:\Users\Desktop\Test.xls

(biff, embedded labels);

You can then use Key as the first dimension and A as the second dimension and avg(Value) as expression. See attached example


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hi Stefan,

Thank you for your help.

I didn't work with crosstab. I have also other variables in my file. It makes crosstab with other variables.

How can I fix it?

Regards,

Vladimir

Anonymous
Not applicable
Author

Hi Gysbert,

Thank you for your help.

I didn't work with crosstab. I have also other variables in my file. It makes crosstab with other variables.

How can I fix it?

Regards,

Vladimir

Anonymous
Not applicable
Author

Thanks guys. Your both issues are right.

I found out how to do it.