Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ckoulis
New Member

data in excel, budget vs actual = variance formula

Hello all,

 

i have the below data in excel

 

Capture.PNG

 

and then i have a powerbi table

 

Capture.PNG

 

i would like to have another column with the variance per month.

any idea?

thank you

1 ACCEPTED SOLUTION
samdthompson
Memorable Member
Memorable Member

Hello you probably want to make three measures (if you havent already made the first 2)

 

1. Actual=SUM(Table1[Actual])

2. Budget=SUM(Table1[Budget])

3. Variance=[Actual]-[Budget]

 

Drag them all into your table

 

 

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

4 REPLIES 4
samdthompson
Memorable Member
Memorable Member

Hello, you need to have the three measures i mentioned earlier, each dragged in. I think you have just a single measure there with the actual/budget as a column header.

 

 

// if this is a solution please mark as such. Kudos always appreciated.
samdthompson
Memorable Member
Memorable Member

Hello you probably want to make three measures (if you havent already made the first 2)

 

1. Actual=SUM(Table1[Actual])

2. Budget=SUM(Table1[Budget])

3. Variance=[Actual]-[Budget]

 

Drag them all into your table

 

 

// if this is a solution please mark as such. Kudos always appreciated.

thank you @samdthompson  that worked great but ihave a follow up.

 

i have a matrix and if i add the measure "Variance" at that matrix it appears at both columns like below

 

Capture.PNG

how can i remove the column marked with blue?

thanks in advance

Hi,

These measures should work

Budget total = calculate(sum(Data[amount]),data[type]="budget")

Actual total = calculate(sum(Data[amount]),data[type]="actual")

Variance = [budget]-[actual]

To your Table, visual, drag Month and Year from the Calendar table and the 3 measures written above.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.