+ Reply to Thread
Results 1 to 2 of 2

Complex calculated field in pivot table (forecast)

  1. #1
    Registered User
    Join Date
    12-19-2018
    Location
    Montreal, Canada
    MS-Off Ver
    365
    Posts
    1

    Complex calculated field in pivot table (forecast)

    Hi,

    I have a pivot table with the following info:
    Month 2016 2017 2018
    Jan 40 17 93
    Feb 45 35 63
    etc.

    I want to make a calculated field to add a forecast column. The formula would be the standard forecast.ets formula and needs 2019 as the target date, the values are the row data (40, 17, 93 in this sample), the timeline would be the years (2016, 2017, 2018). I don't know how to do this with a calculated field or even if it can be done. I tried doing it outside the pivot table but got a #div/0! error because of the dates (I think). The added column would look like:

    2019 ETS
    107 and so on for each row

    Any help would be greatly appreciated

    Thanks so much!

    Jeremy

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Complex calculated field in pivot table (forecast)

    Hello jeremystern and Welcome to Excel Forum.
    This proposal employs a formula that is outside of the pivot table as I don't believe that you can use a calculated field to forecast values.
    Note that I don't know the function or mathematical process used to come up with a value of 107 in post #1.
    In the attached the formula used to forecast monthly values for 2019 is: =FORECAST.LINEAR(4,G4:I4,{1,2,3})
    A variation of the above formula will allow forecasting over multiple years: =FORECAST.LINEAR(COLUMN(D:D),$G12:I12,COLUMN($A:C))
    For future reference you are more likely to get faster and more accurate answers if you provide a sample of the raw data, pivot table and anticipated results, along with explanation of the same, in a spreadsheet. To upload a spreadsheet click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 1
    Last Post: 01-15-2019, 08:54 PM
  2. Pivot Table: Calculated Field based on Running Total Field
    By EvolvingMonkey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 06:27 AM
  3. Replies: 0
    Last Post: 08-15-2016, 02:07 PM
  4. [SOLVED] A pivot table field calculated using other field values as fields?
    By chrisf78 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-07-2015, 03:08 AM
  5. [SOLVED] Referring to a Sub-Field on Calculated Field Pivot Table Column?
    By figo12 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-27-2014, 02:02 PM
  6. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  7. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM

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