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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
somsbkrish8591
New Member

Need to add margin and margin% row in Matrix visuals

Hi All,

 

I would like to show Margin and Margin% in row for matrix visuals.
Below total reference of below image

 

Can any one help here
IMG_20250421_110129.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @somsbkrish8591,

Thank you for reaching out in Microsoft Community Forum.

To display Margin and Margin % as rows in a matrix visual (rather than columns), you can follow this approach using a disconnected table and DAX measures:

Please follow below Steps to Show Margin & Margin % as Rows in Matrix;

1.Create a Disconnected Metric Table

Metric Selector = DATATABLE(
"Metric", STRING,
{
{"Margin"},
{"Margin %"}
}
)

2.Create a Measure to Switch Between Metrics

Selected Metric Value =
SWITCH(
SELECTEDVALUE('Metric Selector'[Metric]),
"Margin", [Margin],
"Margin %", [Margin %],
BLANK()
)

3.Build the Matrix Visual like below;

Rows: 'Metric Selector'[Metric]
Columns: Your desired dimension (e.g., Product, Region)
Values: Selected Metric Value measure

Please continue using Microsoft Community Forum.

If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos' to help others find it more easily.

Regards,
Pavan

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @somsbkrish8591,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Please continue using Microsoft community forum.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @somsbkrish8591,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, kindly "Accept  as  Solution" and give it a 'Kudos' so others can find it easily.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @somsbkrish8591,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept  as  Solution" and give a 'Kudos' so other members can easily find it.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @somsbkrish8591,

Thank you for reaching out in Microsoft Community Forum.

To display Margin and Margin % as rows in a matrix visual (rather than columns), you can follow this approach using a disconnected table and DAX measures:

Please follow below Steps to Show Margin & Margin % as Rows in Matrix;

1.Create a Disconnected Metric Table

Metric Selector = DATATABLE(
"Metric", STRING,
{
{"Margin"},
{"Margin %"}
}
)

2.Create a Measure to Switch Between Metrics

Selected Metric Value =
SWITCH(
SELECTEDVALUE('Metric Selector'[Metric]),
"Margin", [Margin],
"Margin %", [Margin %],
BLANK()
)

3.Build the Matrix Visual like below;

Rows: 'Metric Selector'[Metric]
Columns: Your desired dimension (e.g., Product, Region)
Values: Selected Metric Value measure

Please continue using Microsoft Community Forum.

If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos' to help others find it more easily.

Regards,
Pavan

 

MFelix
Super User
Super User

Hi @somsbkrish8591 ,

 

The image is not clear enough about your needs, however if I understand you want to show a % and the total value on the matrix in rows.

 

On the settings of the matrix search for Show on Rows you can turn it on and the measures that you use on your table will presented in rows.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.