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

Budget to Actual in a matrix

Hi,

 

I have been trying to add in a variance column to better shows the difference from Budget-Actuals. Originally i tried to create a new column in the table (one table houses both actuals and budgets, i merged the budgets onto that actual table) and that didnt work because it was summing all there vaiances together, giving me and incorrect value. Would i need to create a measure to bring into this matrix, i am fairly new to this BI and havent used them so much. I would like to have a variance column for each location. The "Group" is a combination off account codes that role up into those groups. The groups are stored in a different table and then i create a relationship to match that with the actuals (Which are broken down by each transaction that hits an account with a certain location, department...ect).

 

Here is what the matrix looks like.

 

image.png

 

Any suggestions would be greatly appeciated, thanks!

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

I would suggest you establish relationship from Location table to Budget Table and from Location table to Actual table. Then, drag location field from Location table into "Rows" of Matrix. Add below measures into "Values" of Matrix.

 

Budget=SUM(BudgetTable[Budget])

Actual=SUM(ActualTable[Actual])

Difference=[Budget]-[Actual]

 

For more advice, please provide sample data of above three tables and show us desired output.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

I would suggest you establish relationship from Location table to Budget Table and from Location table to Actual table. Then, drag location field from Location table into "Rows" of Matrix. Add below measures into "Values" of Matrix.

 

Budget=SUM(BudgetTable[Budget])

Actual=SUM(ActualTable[Actual])

Difference=[Budget]-[Actual]

 

For more advice, please provide sample data of above three tables and show us desired output.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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.