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
amirghaderi
Helper IV
Helper IV

One Matrix for different metrics

I need to create the below matrix data from available data that I have. But, I am not sure how it can be done in one table view since the row grouping is not one consistant group.

 

ProjectBudgetActualCode1Code2Code3
A100150190CAAAssess
A100200150BBBAssess
A100200180CAASelect
A100122180BBBSelect
A100300200BBBFEED
A100260179DCCFEED
A200250300BCCSelect
A200135166CBBSelect
A200185179CBBAssess

 

Expected output

 

Filter by ProjectA100        
 AssessAssessAssessSelectSelectSelectFEEDFEEDFEED
 Input1Input2MetricInput1Input2MetricInput1Input2Metric
Total Budget (Input1) to Actual (Input2) Project Cost $                  350340350/340322360322/360560379560/379
Total Actual Code1 C (Input1)  to Total Actual Code1 B (Input 2)190150190/150180180180/18001800/180
Total Actual Code 2 BB (Input1) to Total Actual Cost (Input 2)150340150/340180360180/360200379200/379
1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @amirghaderi ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a measure as below

Metric =
DIVIDE (
    CALCULATE ( SUM ( 'Table'[Budget] ) ),
    CALCULATE ( SUM ( 'Table'[Actual] ) )
)

2. Create a matrix visual (Rows: Project  Columns: Code3  Values: Budget, Actual and New measure)

yingyinr_0-1621399354515.png

Best Regards

Community Support Team _ Rena
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-yiruan-msft
Community Support
Community Support

Hi @amirghaderi ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a measure as below

Metric =
DIVIDE (
    CALCULATE ( SUM ( 'Table'[Budget] ) ),
    CALCULATE ( SUM ( 'Table'[Actual] ) )
)

2. Create a matrix visual (Rows: Project  Columns: Code3  Values: Budget, Actual and New measure)

yingyinr_0-1621399354515.png

Best Regards

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

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.