Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Having trouble creating measures to format a matrix. I can't get report to subtract to show variance in table format. I.e. Total Budget and Total Actual in value, based upon Quarter.
| Year | Quarter | Month | Ledger Type | Amount |
| CY 2025 | Q1 CY 2025 | Jan-25 | Budget | 30,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Budget | 50,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Budget | 60,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Budget | 70,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Budget | 80,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPBudget | 90,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPBudget | 100,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPBudget | 110,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPBudget | 120,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPBudget | 130,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Actual | 140,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Actual | 150,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Actual | 160,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Actual | 170,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | Actual | 180,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPActual | 190,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPActual | 200,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPActual | 210,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPActual | 220,000.00 |
| CY 2025 | Q1 CY 2025 | Jan-25 | SPActual | 230,000.00 |
Solved! Go to Solution.
To create measures in Power BI that will allow you to format a matrix and show the variance between Total Budget and Total Actual based on the Quarter, you can follow these steps:
Create Measures for Total Budget and Total Actual:
DAX
Total Budget = CALCULATE(SUM('Table'[Amount]), 'Table'[Ledger Type] IN {"Budget", "SPBudget"})
Total Actual = CALCULATE(SUM('Table'[Amount]), 'Table'[Ledger Type] IN {"Actual", "SPActual"})
Create a Measure for Variance:
Next, create a measure to calculate the variance between the total budget and total actual amounts.
Variance = [Total Actual] - [Total Budget]
Format the Matrix:
Add a matrix visual to your report.
Drag the Year and Quarter fields to the Rows area.
Drag the Total Budget, Total Actual, and Variance measures to the Values area.
Proud to be a Super User! |
|
Hi, @Acmanning
In your Matrix visual, simply drag the “Quarter” field to the rows area and the “Total Budget”, “Total Actual Total Budget”, ‘Total Actual’ and ‘Variance’ Measure to the value area, like this:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks. I did those steps, but now my table displays two many columns
Hi, @Acmanning
In your Matrix visual, simply drag the “Quarter” field to the rows area and the “Total Budget”, “Total Actual Total Budget”, ‘Total Actual’ and ‘Variance’ Measure to the value area, like this:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
To create measures in Power BI that will allow you to format a matrix and show the variance between Total Budget and Total Actual based on the Quarter, you can follow these steps:
Create Measures for Total Budget and Total Actual:
DAX
Total Budget = CALCULATE(SUM('Table'[Amount]), 'Table'[Ledger Type] IN {"Budget", "SPBudget"})
Total Actual = CALCULATE(SUM('Table'[Amount]), 'Table'[Ledger Type] IN {"Actual", "SPActual"})
Create a Measure for Variance:
Next, create a measure to calculate the variance between the total budget and total actual amounts.
Variance = [Total Actual] - [Total Budget]
Format the Matrix:
Add a matrix visual to your report.
Drag the Year and Quarter fields to the Rows area.
Drag the Total Budget, Total Actual, and Variance measures to the Values area.
Proud to be a Super User! |
|
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 62 | |
| 42 | |
| 20 | |
| 18 |