Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Pujitha
Contributor II
Contributor II

Stacked bar chart with 2 dimensions and 3 measured

Hello Everyone,

I need help on this one. Please respond asap- I attached some sample data in which I need to calculate count, percentage, average. I need to show for level column how many are under <24 days, <24 hours >15days<24 days and so on...  along with need to show percentage and average. Other words- Y axis need to show level column ( like - Car, Wheel, and so on...) on stacked bar chart need to show count of <24 days,<24 hours,>15days <24 hours and so on, average of 'Values' column for <24 days, <24 hours and so on.. and percentage also. Please let me know if you are not clear on this. Thank you!

LevelTime spentValues
Car>24 hours9.2
Wheel>15 days< 24 days8.6
Air bag>24 days0.03
Condition>90 days12.3
Tires>24 hours3.5
Wheel>15 days< 24 days3.9
Air bag>24 days4.3
Condition>90 days4.8
Car>24 hours5.4
Gas>15 days< 24 days5.9
Stereo>24 days6.3
Sound>90 days6.9
Winds>90 days8.1
Finder>30 days4
Check>15 days <30 days4.23
Gas>15 days5.67
Wheel>30 days7.14
Condition>20 days8.23
Car>15days <25 days9.24
Air bag>15days <25 days7.134
Tires>15 days< 24 days12.34
Sound>24 days17.56
Winds>90 days6.78
Gas>24 hours9.83
Sound>15 days< 24 days9.8
3 Replies
edwin
Master II
Master II

the ask is not very clear.  for example you want to see how many are <24 hrs when the lowest for time spent is >24 hrs

are you thinking of accumulating numbers for example if one was >15<24 days they count for <24days and also <30 days?  from your own example can you show in a table the expected values?  

or is the ask to just create a chart likethis:

edwin_0-1610047370732.png

 

edwin
Master II
Master II

with legend:

edwin_1-1610047411954.png

 

Pujitha
Contributor II
Contributor II
Author

Hello Edwin,

Thanks for the reply!! In the above we saw averages according to the levels with segregation of >90 days, >15 days<25 days and so on.. Like wise I need to show count and percentage also according to the segregation. I am clear now?

I need to show count - how many are under >15 days<25 days for air bag like that. Percentage also >15 days<25 days value divided by total values for that particular airbag. Here in the example :

Aibag is having >15days <25 days and >24 days so we need percentage like >15days<25days/ >15days<25 days and >24 days like that. Please let me know if you need any clear info from my end.