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

Help for needed chart

Hi all,

I need to create a stacked bar chart with customer name as the dimension.  I want to show the number of open defects per customer based on the severity level.  I know this is set analysis, but I'm not sure how to do this with 3 variables:

Defect type = Defect

Severity = 0 or 1 or 2 or 3

Status = OPEN

Here is the excel version:

SevChart.PNG

All help and guidance is much appreciated!

1 Solution

Accepted Solutions
sudeepkm
Specialist III
Specialist III

you can create a bar chart and then

Select [Customer Name] as first dimension and Severity as Second

Then add expression: count({< Status={'Open'}, [Defect type] = {'Defect'}>}defect_id)

Select your bar chart style as Stacked.

I've assumed the field names but you can use your actual field names in your app.

View solution in original post

7 Replies
vishsaggi
Champion III
Champion III

Can you share some sample data to work on?

sudeepkm
Specialist III
Specialist III

you can create a bar chart and then

Select [Customer Name] as first dimension and Severity as Second

Then add expression: count({< Status={'Open'}, [Defect type] = {'Defect'}>}defect_id)

Select your bar chart style as Stacked.

I've assumed the field names but you can use your actual field names in your app.

Not applicable
Author

Sorry, disregard the previous dataset.....

sudeepkm
Specialist III
Specialist III

here is one way you can create your chart. PFA.

Not applicable
Author

I have the chart created, however, can you tell me how to show the defect counts as ascending?  The only way I can see to sort is by company or severity.

sevs.png

vishsaggi
Champion III
Champion III

Use this count expression in your Sort tab sort by Expression Check box then write this Count expr and change it to ascending.

Not applicable
Author

Of course...thank you!

Thanks to all for the excellent help...problem solved!