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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Need help grouping filtered columns into numeric ranges

I have a table showing:

 

THAONGUYEN6_0-1670271120252.png

and I want to be able to filter in my report by contractor and get the sum of the rows like below: 

 

THAONGUYEN6_1-1670271164934.png

 

and I would like to put these into buckets of ranges like below:

 

THAONGUYEN6_2-1670271193854.png

 

 

So far, I've created a table (not sure if this is correct):

THAONGUYEN6_3-1670271244074.png

 

but I'm having trouble with the next steps.

 

This was the closest guide I could find but it does not work form. Not sure if it is correct: https://www.burningsuit.co.uk/blog/dax-how-group-measures-numeric-ranges

 

thank you

 

 

6 REPLIES 6
ryan_mayu
Super User
Super User

@Anonymous 

pls check if this is what you want

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

It should be 8 results for 1-5 and 2 results for 5-10. Sorry for my typo, it should say 10 not 100.

i didn't copy paste all your data since it's a screenshot. you can try my solution on your own data.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

apologies, i didn't see the attached pbix file. I tried to use it in my own data but it did not sum up the totals per contractor, and instead shows one total in one range.

THAONGUYEN6_0-1670427153828.png

each contractor line only shows a value of of one, but there are multiple rows for each contractor. i need it to sum each of the contractors value's and then bucket them into the ranges. do i just use a simple sum equation?

 

you can try this

Measure 2 = sumx('Table (2)',[Measure])
1.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

sorry for the late reply, that does not work either. 

 

THAONGUYEN6_1-1671462405298.png

 

 

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors