How to calculate actual versus budget in Power BI

texasguy66

New Member
Joined
May 31, 2023
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am new to BI and slowly learning how to use it. My source data is an excel file and I have a specific column that indicates if the line is actual or budget. How can I have BI calculate a variance $?

Thanks
 

Attachments

  • image3.jpg
    image3.jpg
    20.2 KB · Views: 5

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Assuming your table is named Table1, you will want to create 3 measures:
  • Budget
    • Budget = CALCULATE(SUM(Table1[Amount $]),FILTER(Table1,[Act/Bud]="Budget"))
  • Actuals
    • Actuals = CALCULATE(SUM(Table1[Amount $]),FILTER(Table1,[Act/Bud]="Actual"))
  • Variance
    • Variance = [Budget]-[Actuals]


1686170579874.png
 
Upvote 0

Forum statistics

Threads
1,215,958
Messages
6,127,937
Members
449,412
Latest member
sdescharme

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top