Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
irta
Microsoft Employee
Microsoft Employee

Auto grouping or bin?

I'm looking for something which can do the auto grouping/slice given K values.
We have the table showing execution time by count(X axis is duration time, Y axis is count). As shown below, the graph has a long tail which takes a lot of space.
dur.JPG
What we want is to have 4bins to group all these data, like 0-100, 100-500, 500-2000, 2000-5000, range automatically figured by the value count for each bin(each bin got 1/4 value counts). If we can group this into first 25%, 50%, ... 99% that will be even better. Expected look as below:
expect.JPG
And since we have so many data, it's also hard to do manual grouping. Any idea?
1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi irta,

According to your description, my understanding is that you want to auto group your data in X-axis to 4 part.

In this scenario, we can use the grouping and binning function in PowerBI desktop. Please refer to the following steps:

  1. Right-click on the field (in this scenario is duration time) you want to group, select “New Group”.
  2. Then configure it like below:111.png
  3. After that drag this bin and count measure to visual, the result will like below:222.png

For more information, please refer to this document: https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi irta,

According to your description, my understanding is that you want to auto group your data in X-axis to 4 part.

In this scenario, we can use the grouping and binning function in PowerBI desktop. Please refer to the following steps:

  1. Right-click on the field (in this scenario is duration time) you want to group, select “New Group”.
  2. Then configure it like below:111.png
  3. After that drag this bin and count measure to visual, the result will like below:222.png

For more information, please refer to this document: https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning

Best Regards,

Teige

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.