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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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