+ Reply to Thread
Results 1 to 10 of 10

Add forecast to pivot table based on query

  1. #1
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Add forecast to pivot table based on query

    I created a query and a pivot table, and now want to add a forecast.

    The query outputs the following columns: Company, Area, Department, Year, Month, Total.

    The pivot table is based on it and has the following settings:
    Columns: Year, Month
    Rows: Company, Area, Department
    Values: Sum of Total

    The year and month make up the last year, so, right now, for example, it lists 2022/5-2023/4, with a total for each year and a grand total.

    fh8sdqhpp93b1.png

    Now i want to add a forecast for the next 3 months on another tab. If i go to Data->Forecast->Forecast Sheet, the Create Forecast Worksheet popup has, "Use historical data to create a visual forecast worksheet" Then, "A forecast can't be created because the timeline isn't evenly spaced."

    lvkfwic0q93b1.png


    Is it a mistake to try to base the forecast on the pivot table?

  2. #2
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Re: Add forecast to pivot table based on query

    Error was because of the total columns which can be removed under pivot table option and column options. I created date column in another tab with a formula, but then it said i had too much data. If i limited it to one row, it created the forecast, but that took up multiple rows, though i only had one per forecast. Instead, i used the average different over the last three months and just added it to the most recent total. That seems to work, for now.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add forecast to pivot table based on query

    pictures are useless, post an example excel file with manually created expected result and detailed description

  4. #4
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Re: Add forecast to pivot table based on query

    > post an example excel file with manually created expected result

    Not exactly my forte. In the meanwhile, i seem to have found a workable solution, so i'm good with that. I was just posting my solution in case anyone finds it via a search.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add forecast to pivot table based on query

    would be fine if you share solution here

  6. #6
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Re: Add forecast to pivot table based on query

    Was the other post not clear enough?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add forecast to pivot table based on query

    you mean post#2 ?
    that's ok

  8. #8
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Re: Add forecast to pivot table based on query

    Yeah, that's what i did. And it stands until they tell me otherwise.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add forecast to pivot table based on query

    I usually don't read posts without attaching an example excel and that's why there are these questions
    you should identify posts eg. solution
    or who you are replying to
    here there are two users at the moment so there is no problem but when there are more it starts to be problematic

    good it's work for you
    have a nice day

  10. #10
    Registered User
    Join Date
    06-01-2023
    Location
    USA
    MS-Off Ver
    2019
    Posts
    6

    Re: Add forecast to pivot table based on query

    Ah, i marked it as solved. This was my first post here, and i didn't think anyone was going to see my reply after it fell so far behind.

+ 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. Baseline Vs Forecast pivot table
    By abb16ott in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-17-2023, 09:07 AM
  2. Help using the FORECAST function in a pivot table
    By darenferg in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-22-2021, 05:46 PM
  3. Replies: 14
    Last Post: 01-22-2020, 04:46 AM
  4. Complex calculated field in pivot table (forecast)
    By jeremystern in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-27-2019, 11:53 PM
  5. Get variance between Forecast and Actual using Pivot Table
    By juan.doe in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-04-2016, 03:13 AM
  6. Pivot Table - Forecast at completion based on actuals to date
    By ramgouda in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2014, 04:37 PM
  7. [SOLVED] Pivot Table based on SQL Server query
    By Ben Rum in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2005, 07:26 AM

Tags for this Thread

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