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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Share within a segment

I'm struggeling to find the right dax code to calculate a share of manufacturer within a category. See example below of my matrix table:

 

Mhrnjic_0-1670580993383.png

 

I have a Dim table with manufacturers linked to brands and categories.

 

My current code gives me a result of 100% on every single line:

Company total share mat = CALCULATE('Sales data total'[MAT Value])/CALCULATE('Sales data total'[MAT Value],FILTER(category_All_Categories_sales_r,category_All_Categories_sales_r[Category]<> BLANK()))
3 REPLIES 3
Mahesh0016
Super User
Super User

Mahesh0016_0-1670590894159.png

Hello @Anonymous ,

i hope it is helpful for you.

Mahesh0016
Super User
Super User

please can you share expected result snapshot.

 

Anonymous
Not applicable

Expected results would be that the last column is a calculation of mat value by row devided by the total sum in bold. So after column 403.130 there should be 0.029 (instead of 1)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors