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.
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.
Project | Budget | Actual | Code1 | Code2 | Code3 |
A100 | 150 | 190 | C | AA | Assess |
A100 | 200 | 150 | B | BB | Assess |
A100 | 200 | 180 | C | AA | Select |
A100 | 122 | 180 | B | BB | Select |
A100 | 300 | 200 | B | BB | FEED |
A100 | 260 | 179 | D | CC | FEED |
A200 | 250 | 300 | B | CC | Select |
A200 | 135 | 166 | C | BB | Select |
A200 | 185 | 179 | C | BB | Assess |
Expected output
Filter by Project | A100 | ||||||||
Assess | Assess | Assess | Select | Select | Select | FEED | FEED | FEED | |
Input1 | Input2 | Metric | Input1 | Input2 | Metric | Input1 | Input2 | Metric | |
Total Budget (Input1) to Actual (Input2) Project Cost | $ 350 | 340 | 350/340 | 322 | 360 | 322/360 | 560 | 379 | 560/379 |
Total Actual Code1 C (Input1) to Total Actual Code1 B (Input 2) | 190 | 150 | 190/150 | 180 | 180 | 180/180 | 0 | 180 | 0/180 |
Total Actual Code 2 BB (Input1) to Total Actual Cost (Input 2) | 150 | 340 | 150/340 | 180 | 360 | 180/360 | 200 | 379 | 200/379 |
Solved! Go to Solution.
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)
Best Regards
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)
Best Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |