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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
amigo007
Contributor III
Contributor III

Stacked bar chart

I'm struggling to show a data on a stacked bars chart, I have the data in the follwoing format:

IdLocationSector1 Risk LevelSector2 Risk LevelSector3 Risk Level
1Location1HighLowLow
2Location2LowLowLow
3Location3LowMediumLow
4Location4LowMediumHigh
5Location5MediumMediumHigh
6Location6MediumMediumHigh
7Location7LowHighMedium
8Location8HighLowMedium

What would be the best way to show the data on stacked bars so that X-axis has: 'Sector1 Risk Level', 'Sector2 Risk Level' and 'Sector3 Risk Level' dimensions, then the risk levels count will be displayed on stacked bars per each sector?

Thanks.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Used a The Crosstable Load to transform the data and then used this

Dimensions

Sector

Risk Level

Expression

Count(Id)

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

Used a The Crosstable Load to transform the data and then used this

Dimensions

Sector

Risk Level

Expression

Count(Id)

Capture.PNG

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

You can try:

CrossTable(Sector, [Risk Level], 2)

LOAD Id,

     Location,

     [Sector1 Risk Level],

     [Sector2 Risk Level],

     [Sector3 Risk Level]

FROM

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

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

comm.png

Help users find answers! Don't forget to mark a solution that worked for you!
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

stalwar1, you are faster than light ^^

Help users find answers! Don't forget to mark a solution that worked for you!
amigo007
Contributor III
Contributor III
Author

Works great! Thanks Talwar and Martinez for your very fast help..