Monday, November 22, 2021

Add Percentile in a Pivot Table

Pivot Tables are a fantastic analytic tool in Excel to display data in a easily consumable format. They can quickly aggregate data into sums, averages and even standard deviations in the values fields of the pivot table. What if you wanted to rank data? Not by sorting, but in some "statistical" way? What if you wanted to get percentiles (like the 90th or 95th percentile)? You could create your own table with the PERCENTILE.INC or PERCENTILE.EXC functions to calculate it based on your specific criteria but then you'd need to maintain or update the range where those formula reside when there is new data. You can actually put percentile (or even quartile) data into a Pivot Table with the use of the data model and some DAX. Though data model and DAX sounds complicated, it's actually not to hard to use to get percentiles. See the video to learn how.

Sunday, November 14, 2021

Generate Random Numbers that Adds Up to a Certain Amount

I saw this question in one of my other videos about random number generation videos and I was curious to know how could a set of random numbers be generated to add up to some determined amount? Well I found a thread on stackoverflow.com and pick up the tips there and made a video. Here it goes...

Sunday, November 7, 2021

Create Horizontal Box Plot with Mean and Median

Box and whisker charts are something that is easy to create in Excel if you’ve got version 2016 or higher. There’s the option to create a vertical box plot but unfortunately there’s no option to create a horizontal box and whiskers chart. It’s actually fairly easy to create a sideways box plot by modifying a stacked column chart and adding a scatter chart for the mean (average) value.