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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Creating Row Measures in a Matrix Table

Hello,

 

I am new to PowerBi and need some help with adding row measures to a Matrix Table so it looks something like this:

 
 JunJulAug
A251025
B751025
C1005025
Total2007075
A % Total13%14%33%
B % Total38%14%33%
C % Total50%71%33%

 

I was able to get the table to show the bold items but cannot fin a way to add the measures into the table so that filters will apply as well. My data set looks something like this:

 

ProductMonthCategoryQty
AJunUnits25
BJunUnits75
CJunUnits100
AJulUnits10
BJulUnits10
CJulUnits50
AJulUnits25
BJulUnits25
CJulUnits25

 

Any assistance you can provide is appreciated.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous - What you want is absolutely possible. What you need is a disconnected table for your row headers. Then create a measure that returns the correct calculation based upon your row. So your disconnected table would be:

 

Column

A

B

C

Total

A % Total

B % Total

C % Total

 

See my Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick/ba-p/279563


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

@Anonymous - What you want is absolutely possible. What you need is a disconnected table for your row headers. Then create a measure that returns the correct calculation based upon your row. So your disconnected table would be:

 

Column

A

B

C

Total

A % Total

B % Total

C % Total

 

See my Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick/ba-p/279563


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you for the suggestion and the link to your Disconnected table Trick. It worked!!!!

 

Anonymous
Not applicable

Thanks Greg. I will try that and see if I can get it to work.

Fowmy
Super User
Super User

@Anonymous 

I am not sure if it's possible but the closest I can get is using the "Show on Rows" option under the Values section of the Matrix. 

Fowmy_0-1596869041796.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous , the format is not possible.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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