Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Pujitha
Contributor II
Contributor II

Calculate avegare,count,Percentage in stacked bar chart

Hello all, I need to calculate average, percentage, count in stacked bar chart. Sharing sample data. Please help me as soon as possible. I need to calculate like for :

Level column suppose (Price )1)how many are <=10 hours,>15days<=20days,>24 hours and<=15 days,>30 days and<=60 days and so on..(Count)

2) How much is Average for Level(column) under <=10 hours,>15days<=20days,>24 hours and<=15 days,>30 days and<=60 days and so on..(Average)

3)How much is Percentage for Level (column) under <=10 hours,>15days<=20days,>24 hours and<=15 days,>30 days and<=60 days and so on..(Percentage )

So, left hand side(y axis) we need get Level column and need to show count, average, percentage on chart and need to get data values of average at end of each bar.

Please let me know if you have any questions in data. Please help me asap. Thank you!

 

LevelHoursValues
Tag<=10hours-390.81
Price>15days<=20days-158.96
Digital>24hours and <=15 days-9.88
Custom>30 days and <=60 days-1.13
134eRome>90 days0.04
800Belt>60 days and <=90 days0.09
19s045 total<=10hours47
Price>15days<=20days48.02
Digital>24hours and <=15 days49.05
Custom>30 days and <=60 days52.34
Nation>90 days33.12
300year>60 days and <=90 days43.45
250g>60 days and <=90 days11.23
3 Replies
edwin
Master II
Master II

do you have more data?  the data is few that the average and sum of some  levels will be the same.  also theres only one Hours value per level so percent will always be 100%

edwin
Master II
Master II

check the attached QVW with random data.  shows sum and ave per level and Hours, the 3rd expression is the subtotal per level, which is used in the percentage (assuming you wanted to see the percentage per hour for each level.

edwin
Master II
Master II

also, how will you stack a percentage on to the total and average?