cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

1 ACCEPTED SOLUTION
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

2 REPLIES 2
Anonymous
Not applicable

@amitchandak  Thanks Amit its working

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

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors