+ Reply to Thread
Results 1 to 6 of 6

Actual to Budget difference in Pivot table

  1. #1
    Registered User
    Join Date
    02-18-2019
    Location
    Bournemouth
    MS-Off Ver
    Office 365
    Posts
    12

    Actual to Budget difference in Pivot table

    I have combined two data sets - one had Sales Forecasts and the other had Sales Actuals. I added an extra column to the data to denote if the value was an Actual or a Forecast.

    I have created a Pivot table and put the Actual/Forecast field in the Columns box so I have Month -> Actual and Forecast.

    The problem is the total for each month is adding the Actual to the Forecast, instead I would like to change this to instead show the difference between the two.

    Pivot Variance.PNG

    Is this possible?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Actual to Budget difference in Pivot table

    It's possible, if you use the data model, and create a measure (using DAX).

    Attach a sample workbook showing your data structure and required output, then I can demonstrate an appropriate measure.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-18-2019
    Location
    Bournemouth
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Actual to Budget difference in Pivot table

    I have created a dummy Workbook to show you, but the attachment button isn't working for me in Chrome or Edge.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Actual to Budget difference in Pivot table

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    02-18-2019
    Location
    Bournemouth
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Actual to Budget difference in Pivot table

    Many thanks Olly. See attachment.
    Attached Files Attached Files

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Actual to Budget difference in Pivot table

    Load your source data table to the data model - I've done it via Power Query, and named the table "Source Data".

    Now you have at least two options to achieve your requirement.

    Option1
    Add three measures to your model / pivot, and remove the Actual/FC field from the pivot table;
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.


    Option 2
    Add one more complex measure:
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-15-2017, 03:14 AM
  2. Budget vs Actual Analysis
    By ruchi1127 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-18-2015, 01:06 PM
  3. Need a formula to calcuate percentage difference between budget $ and actual $
    By meekinslfm in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-06-2014, 09:54 AM
  4. Pivot table for a Budget sheet.
    By Griz1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-09-2013, 05:29 PM
  5. Replies: 0
    Last Post: 05-19-2009, 04:59 PM
  6. Budget vs. Actual
    By Stanley in forum Excel General
    Replies: 0
    Last Post: 12-16-2005, 05:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1