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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
bdehning
Post Prodigy
Post Prodigy

Matrix Table Column Percentage

I have the following Matrix Table.  Can I and how would I add a row at the bottom to show the percentage of each column to the table total?  

 

Percentage.PNG

So I would get 14/2966, 62/2966, etc?

1 ACCEPTED SOLUTION
PVO3
Impactful Individual
Impactful Individual

This is not easily achieveable. Easiest workaround is to just put another visual below it and format it like it appears to be another total row.

 

Better solution is this

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @bdehning 

According to your description, you want to add a row which shows the "Percentage" in the Matrix. Right?

For the Matirx visual , the total is auto generated, in the settings we can't add another row. We can just add the row in the raw data.

Here are the steps you can refer to :

(1)This is my test data:

vyueyunzhmsft_0-1666158276272.png

(2)We can create a blank Query in PowerBI Query Editor and enter :

let
    Source = Sheet1,
    Custom1 = Table.Group(Source, "Type" , {"test",(x)=> List.Sum(x[Value]) /  List.Sum(Sheet1[Value])    } ),
    #"Added Custom" = Table.AddColumn(Custom1, "Custom", each "Percentage"),
    #"Reordered Columns" = Table.ReorderColumns(#"Added Custom",{"Custom", "Type", "test"}),
    #"Renamed Columns" = Table.RenameColumns(#"Reordered Columns",{{"Custom", "Policy Inception Date"}, {"test", "Value"}}) & Sheet1,
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Value", type number}})
in
    #"Changed Type"

The result table is as follows:

vyueyunzhmsft_1-1666158510914.png

(3)We apply the data to Power BI Desktop, We can create a measure in Power BI Desktop:

Measure = var _t =FILTER( 'Query1' , 'Query1'[Policy Inception Date] <> "Percentage")
var _total =   SUMX(_t , [Value])
var _percentage = FORMAT( SUM('Query1'[Value]) ,"Percent") 
return
IF(HASONEVALUE(Query1[Policy Inception Date]) , IF(MAX('Query1'[Policy Inception Date])= "Percentage" ,_percentage ,   _total) ,_total)

(4)Then we can put the filed in the new table and the measure on the visual and we will meet your need , the result is as follows:

vyueyunzhmsft_2-1666158613041.png

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

PVO3
Impactful Individual
Impactful Individual

This is not easily achieveable. Easiest workaround is to just put another visual below it and format it like it appears to be another total row.

 

Better solution is this

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors