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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
fbostan1
Frequent Visitor

Dax to subgroup a coverage volume

I need help with getting Sub_Vol Column into subgroup 

For example : 0-50,000, 50,001-150,000, 150,001-250,000

fbostan1_0-1693591568713.png

 

fbostan1_1-1693591705540.png

So I could build a visual like this:

fbostan1_2-1693591759016.png

 

Thanks for the help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@fbostan1 , Create columns using Switch

 

Amount Bucket =  Switch( True() ,

[Amount] <50000, "    0 -50000",

[Amount] <100000, "  50000-100000",

//Add others

)

 

Same way you can create for Age

 

Either have space before bucket name to sort to create another column with same logic. To be used as sort column

 

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

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

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I'd like to try.  Share the download link of the PBI file.  Also, share the download link of an MS Excel workbook, showing the exact result.  If i can write the DAX measure for it, I should be able to tally my answer with yours that you will share in the Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@fbostan1 , Create columns using Switch

 

Amount Bucket =  Switch( True() ,

[Amount] <50000, "    0 -50000",

[Amount] <100000, "  50000-100000",

//Add others

)

 

Same way you can create for Age

 

Either have space before bucket name to sort to create another column with same logic. To be used as sort column

 

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

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

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

April2025 Carousel

Fabric Community Update - April 2025

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