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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tob_P
Helper V
Helper V

Groups/Bins from a Measure

Hi,

 

Done a fair bit of reading on this but can't find a use case scenario similar so wanted to ask here. Inherited a report which has the following Measure...

 

Sum of Max Amount = SUMX(DISTINCT('NAV_Sales Header'[OTP No_]),[Max Amount])+0

 

...which essentially gives me the Maximum Value. What I need to be able to do is create a calculated column that groups the max amount into the following groupings. I've created this unrelated table (tbl_BinTable) in my .pbix

 

Range NameMinMaxIndex

£0 - £5,000050001
£5,000 - £20,0005000200002
£20,000 - £50,00020000500003
£50,000 - £100,000500001000004
£100,000+10000050000005

 

Is it possible to create groupings based on a Measure?

 

Apologies, on this one I don't have any sample data to share.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Tob_P ,

 

Here are the steps you can follow:

1. Create calculated column.

Column =
MAXX(
    FILTER(ALL('Table'),
    'NAV_Sales Header'[Sum of Max Amount]>='Table'[Min]
    &&
    'NAV_Sales Header'[Sum of Max Amount]<='Table'[Max]),[Index])

2. Result:

vyangliumsft_0-1679899491025.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Tob_P ,

 

Here are the steps you can follow:

1. Create calculated column.

Column =
MAXX(
    FILTER(ALL('Table'),
    'NAV_Sales Header'[Sum of Max Amount]>='Table'[Min]
    &&
    'NAV_Sales Header'[Sum of Max Amount]<='Table'[Max]),[Index])

2. Result:

vyangliumsft_0-1679899491025.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Tob_P , refer

 

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


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

 

 

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

Thanks for sharing - I'm looking more specifically for a calculated column, rather than a measure, so that I can use those bandings in a Slicer to filter by.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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