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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cheid1977
Advocate I
Advocate I

Data Range Grouping

I would like to take shipment weights and break them down into weight ranges (ex. 0 - 5, 5 -10, 10-20, etc).  I tried the Groups function, but I would have to update that everytime my data was refreshed with new data due to new shipment weights being added.  Is there a recommended formula that could be used that would allow the shipment weight to be grouped into these weight ranges i provided earlier and update as my data is refreshed? Thanks.

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @cheid1977,

 

Have you tried the solution provided above? Does it work in your scenario? If the solution works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Thanks for the recommendation. I have had a chance to test it out. As soon as I do I will let you know if it works. 

Anonymous
Not applicable

I would just add a calculated column "Weight Bucket".  There are a few ways to do this (eg, you could have a separate table that controls the buckets and lookup into it)  or whatever, that has the formula (something like)

  Bucket = SWITCH( TRUE(),
    [Weight] <= 5, "0-5",
    [Weight] <= 10, "5-10",
    ...
    [Weight] <= 100, "80-100",
    "Real Heavy"
  )

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors