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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
YevD
Helper I
Helper I

Creating buckets/bins based on value ranges

Hello and thank you taking a look at this.

 

I am looking for a way to put a range of $ values into custom bins, which I could then use in a number of combo charts with other variables. As I understand, I can use a grouping to specify my ranges. However, it seems to me these bins will not be automatically filled as new data is pulled during refreshes. Is this correct? If so, what would be the best way to perform this grouping in way where all exsisting and future new values will be categorized.

 

Thank you,

Yev

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@YevD , You need to dynamic segmentation using independent table

 

refer if my video can help

Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

or blog

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...

 

else

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

7 REPLIES 7
YevD
Helper I
Helper I

Hello @Jihwan_Kim and @amitchandak ,

 

Sorry for the delay. Here is a sample file outlining my goal. I would love to bucket the 'Amount' variable into various ranges depending on the visual. I'd be beyond grateful if you could help me with setting up the <=$100M, $100M-$500M, and $500M+ buckets. I think I should be able to create new ones using them as the template.

 

https://1drv.ms/u/s!AgeVqxpmuh7I9QNxnhmEfWK-YvaI?e=hx1YZ5

 

Cheers!

YevD

Hi, @YevD 

Thank you for sharing.

Sorry that I cannot know what you want to see.

Please check the link down below.

 

Picture1.png

 

https://www.dropbox.com/s/ppkthckjple36ec/Sample_Buckets.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



YevD
Helper I
Helper I

Apoligies for the lack of clarity. Let me try try again:

 

I have a column which lists a range of values which I would like to segment into buckets. I would then like to create use these buckets in my charts as either axis, legend, or values.

 

I have looked into the dynamic segmentation (there is a number of posts here), but feel like it might be an overkill at this point because once a value gets classified into the bucket it remains in it. I am thinking that a claculated column should serve the purpose, but again, I am a novice and might be missing something.

Jihwan_Kim
Super User
Super User

Hi, @YevD 

I am not sure if I understood your question correctly.

Please try to create a grouping table something like below, which is separated and not connected with other tables in the model.

The values can be always segmented into the group by writing a DAX measure.

 

Picture1.png

 

If you have a sample pbix file, please share a link here, then I can try to look into it to come up with more accurate solutions.

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Hi @Jihwan_Kim, would you be able to help out with the DAX measure or the claculated column?

Hi, @YevD 

Thank you for your feedback.

Please share your sample pbix file's link.

I still suggest having a separate grouping table, but I want to see the sample pbix file.

Thanks.



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



amitchandak
Super User
Super User

@YevD , You need to dynamic segmentation using independent table

 

refer if my video can help

Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

or blog

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...

 

else

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.