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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
RossChevalier
Helper III
Helper III

HELP NEEDED : Determining the percentage contribution of a matrix cell value of a calculated total

Hi folks,

 

I am gapping on how to do what I think should be simple.

 

I have a matrix visual that is working very well using basic sum aggregation for the columns as shown below.

 

RossChevalier_0-1649689017300.png

My user would like an additional column in the matrix that shows what percentage of the total each product makes up for each location.  The locations are the first row set in the matrix and the products are the second row set in the matrix.

 

As an example, the % value for the first product (Bathurst PMO) would be 97753 / 1785017 displayed as a percentage to two decimal places (5.48%)  Since I do not know the total for the location until the matrix is visualized, I do not know how to create the measure or column to hold the percentages.  

 

I feel that I am missing something incredibly obvious.  Assistance will be very much appreciated.

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@RossChevalier,

 

Try these measures. ALLSELECTED removes visual-level filters from Product, but keeps filters from outside the visual (e.g., slicer). ALL can be used instead of ALLSELECTED; just be sure to understand the difference.

 

Total Volume FBM = SUM ( Table1[Volume FBM] )
Product % of Location = 
VAR vNumerator = [Total Volume FBM]
VAR vDenominator =
    CALCULATE ( [Total Volume FBM], ALLSELECTED ( Table1[Product] ) )
VAR vResult =
    DIVIDE ( vNumerator, vDenominator )
RETURN
    vResult

 

DataInsights_0-1649691983881.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
RossChevalier
Helper III
Helper III

Thank you so much for your assistance!  I would not have gotten here without your help.  Brilliant!

DataInsights
Super User
Super User

@RossChevalier,

 

Try these measures. ALLSELECTED removes visual-level filters from Product, but keeps filters from outside the visual (e.g., slicer). ALL can be used instead of ALLSELECTED; just be sure to understand the difference.

 

Total Volume FBM = SUM ( Table1[Volume FBM] )
Product % of Location = 
VAR vNumerator = [Total Volume FBM]
VAR vDenominator =
    CALCULATE ( [Total Volume FBM], ALLSELECTED ( Table1[Product] ) )
VAR vResult =
    DIVIDE ( vNumerator, vDenominator )
RETURN
    vResult

 

DataInsights_0-1649691983881.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.