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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Box plot of a grouped dataset

Hi I have a dataset like this

CountAge

Category

318A
30019A
10020A
5621A
417B
1018B
3519B
2020B
9733C
9434C
8635C
8736C
8737C

I want to plot the age distribution of each category which seems natural enough and in a boxplot format however its seems difficult to make it display what I want.  Please help thanks!

7 Replies
Qrishna
Master
Master

This way?

1.PNG

Anonymous
Not applicable
Author

I was thinking more of a box and whisker plot where each plot is a category showing the median max and min age for that category.

Lisa_P
Employee
Employee

Hi Bob,

I took your data into Qlik Sense and simply created a box plot to show the count distribution using the standard settings with your two dimensions and it came out like this:

box.PNG

Anonymous
Not applicable
Author

It should be more of a distribution of the age itself and not the distribution of the counts. So A has median first third quartile of 19. B has median 19 first quartile 18.xx third quartile 20. C has median of 35 first quartile 33.xx third quartile 36.xx

Lisa_P
Employee
Employee

Got it. Here is result and settings ..

Age.PNG

ageset.PNG

Anonymous
Not applicable
Author

Thanks! It's a little .. Odd? Cat C has a max age of 37 but the max age shown in the graph is 70+?

Anonymous
Not applicable
Author

Hi,

I guess the problem is that you first dimension should be age and the expression should be sum(count).

https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Visualizations/BoxPlot/box-pl...

Regards,