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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
THAONGUYEN6
Frequent Visitor

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

@THAONGUYEN6 

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!




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!




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!




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

 

THAONGUYEN6_1-1671462405298.png

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.