Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a stacked bar chart

I have survey responses such as the following:

Rank your top 3

Response IDBCD
Sales320
IT312
Finance132
Support201

I want to create a stacked bar chart which will have the ranks 1,2,3 along the x axis and the count of response IDs. with B,C,D identified by colours and as the legend.


Can you help?

Thanks in advance

5 Replies
sunny_talwar

Like this?

Capture.PNG

Where i used a crosstable load to transform the data in the script

Table:

CrossTable(Type, Data)

LOAD [Response ID],

     B,

     C,

     D

FROM

[https://community.qlik.com/thread/243322]

(html, codepage is 1252, embedded labels, table is @1);

Not applicable
Author

Thanks Sunny!

Is there any way to do this without doing it within the script?

sunny_talwar

There might be, but why do you really want to complicate your front end? AFAIK Any front end solution will require you to use synthetic dimensions with very complex expressions.

Not applicable
Author

ok thanks

varshavig12
Specialist
Specialist

Please close the thread by marking the correct answer.