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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

I want Row wise 100 % total using DAX

Hi 

Need help,

I want row wise 100% of category and sub category please suggest DAX code

I am using Matrix Visual for this, Category and Subcategory are Rows and A,B,C,D are single column , Please help

 

PPK2698_0-1662743140021.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You want % of row-wise total for a measure M1 . Sub Category on column

 

Divide([Measure], calculate([Measure],removfilters(Table[ Sub Category]) ) )

 

or

 

Divide([Measure], calculate([Measure],filter(allselected(Table), Table[Category] = max(Table[Category]) ) ) )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho

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
Anonymous
Not applicable

@amitchandak  Thanks Amit its working

amitchandak
Super User
Super User

@Anonymous , You want % of row-wise total for a measure M1 . Sub Category on column

 

Divide([Measure], calculate([Measure],removfilters(Table[ Sub Category]) ) )

 

or

 

Divide([Measure], calculate([Measure],filter(allselected(Table), Table[Category] = max(Table[Category]) ) ) )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Kudoed Authors