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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bitbit
Helper I
Helper I

Need help on matrix table

Hi.  Pls advise the question in my sample file in this link:

https://www.dropbox.com/s/v1zv1hycllbeqco/test.pbix?dl=0 

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @bitbit ,

 

Based on my research, add columns in Matrix is not accessible.  But we can take a try in the table following below steps:

 

  1. I can’t use your sheet in query editor, so I copied your data in the new table1. And grouped the version in query editor:

5.png2. Sorted ascending and added the index column:

6.png3. Then applied the change, we’ll get the table1 , add the 3 measures to get the results:

Compare NS by version = CALCULATE(SUM(Table1[NS]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[NS]),VALUES(Table1[Version]))
Compare GM by version = CALCULATE(SUM(Table1[GM]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[GM]),VALUES(Table1[Version]))
Compare IFO by version = CALCULATE(SUM(Table1[IFO]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[IFO]),VALUES(Table1[Version]))

7.png

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @bitbit ,

 

Based on my research, add columns in Matrix is not accessible.  But we can take a try in the table following below steps:

 

  1. I can’t use your sheet in query editor, so I copied your data in the new table1. And grouped the version in query editor:

5.png2. Sorted ascending and added the index column:

6.png3. Then applied the change, we’ll get the table1 , add the 3 measures to get the results:

Compare NS by version = CALCULATE(SUM(Table1[NS]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[NS]),VALUES(Table1[Version]))
Compare GM by version = CALCULATE(SUM(Table1[GM]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[GM]),VALUES(Table1[Version]))
Compare IFO by version = CALCULATE(SUM(Table1[IFO]),Table1[Version]="Actual")-CALCULATE(MAX(Table1[IFO]),VALUES(Table1[Version]))

7.png

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.