+ Reply to Thread
Results 1 to 11 of 11

Format pivot chart trendline, Actuals vs forecast

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Format pivot chart trendline, Actuals vs forecast

    Greetings,

    I have perhaps a dozen trendlines on a pivot chart.
    Is it possible to distinguish between actuals/forecast
    i.e. through a different format after the current month?

    My data source places each month in a different column.


    Thanks,

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Format pivot chart trendline, Actuals vs forecast

    Could you provide a sample workbook showing your data layout and your current chart?

    B

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Re: Format pivot chart trendline, Actuals vs forecast

    I can't seem to attach my file;
    how does one do this?

  4. #4
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Format pivot chart trendline, Actuals vs forecast

    Click on "Go Advanced" below your reply and then click on "Manage Attachments".
    Should be straightforward from there.

    B

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Re: Format pivot chart trendline, Actuals vs forecast

    Ok, here is a Reader's Digest version of my file.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Format pivot chart trendline, Actuals vs forecast

    After a couple of days, I will venture to respond. I don't quite understand what you are trying to do here. Your sample file shows a pivot table with 3 columns (plus the grand total column) and those 3 columns plotted in a pivot chart. Your request states that you are trying to distinguish in the chart between "actual" and "forecast", but I don't see anything in the pivot table or chart or source data to indicate what values are actual values and what values are forecast values. I also cannot tell if the charted values are the trendlines you are referring to, or if you are adding trendlines to these three series in the pivot chart, and your request for formatting refers to the chart trendlines that you have not added in your sample.

    My first suggestion is that, if the chart is going to be able to distinguish between "actual" and "forecast", there must be some way in the spreadsheet to distinguish between actual and forecast. My other expectation is that, in order to different formats for "actual" and "forecast" in a chart, you will likely need to add the actual and forecast values as separate data series, which will likely mean some kind of change to the source data and/or pivot table. Since I am not certain exactly what you are trying to do, I cannot yet make any specific recommendations.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Re: Format pivot chart trendline, Actuals vs forecast

    The 12 months is a series of data combining both Actual and Budget data.
    The file is designed to show the expected trend for the entire year.

    There is (/was - it didn't survive the condensing process!) a named field "CurrentDate".

    I would like to be able to incorporate the "CurrentDate" into the chart
    i.e. have all lines change format to the right of the the "CurrentDate".

    Is this possible without creating new data series?

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Format pivot chart trendline, Actuals vs forecast

    Possible? I tend to be optimistic that most anything is possible with enough time, effort, and ingenuity. Using separate data series for conditional formatting is general the easiest way to do it, not the only way.

    The easiest, albeit tedious, way without VBA is to manually format each "forecast" data point in the chart. To select a single data point in a series, click on the series once, then click on the desired data point. Bring up the format data point dialog and format as desired. Repeat for each "forecast" data point (the redo ctrl-y command will likely be invaluable in performing this task). It will be a bit tedious the first time. And will need to be repeated each time you update the pivot table (with monthly data, that would likely mean changing the format of several data points each month), but it should be straightforward and easy.

    This process can be automated in VBA, if desired. I will refer to Jon Peltier's tutorial: http://peltiertech.com/vba-condition...ategory-label/ This tutorial shows an approach using VBA to format each data point. He stores the "format" color in a table in the spreadsheet, which can be useful, but is not necessary for the macro to work. The key part of the procedure is the "For icategory...Next" loop that loops through every data point in the data series, checks the x axis data, and formats the data point accordingly. If you want to pursue this, I would suggest you spend some time with Jon's tutorial until you understand how this loop works.

  9. #9
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Re: Format pivot chart trendline, Actuals vs forecast

    I vaguely remember seeing a page on using separate data series;
    do you have a link I can followup on?

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Format pivot chart trendline, Actuals vs forecast

    This link occurs near the top of the VBA conditional formatting post previously linked to: http://peltiertech.com/conditional-f...-excel-charts/

  11. #11
    Registered User
    Join Date
    08-19-2013
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    17

    Re: Format pivot chart trendline, Actuals vs forecast

    I've just discovered the fact that zeros in the datasheet will be graphed in the pivot chart, whereas blanks are not!
    Never noticed it before

    I've gone with a rearranging the datasheet solution:
    it involves 3x data, but the result allows for more options for the customer.

    I've tripled the data set, and a new column for the type of data (Budget, Actuals, and Expected).
    The new field is now a page field; the user can decide on what he wants to see.

    In a worse case scenario, there would normally be a max of 400 data lines,
    so 1200 lines is not really going to slow anything down. I'm good with it!

    Thanks for your input!

+ 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. [SOLVED] Excel 2010 Trendline With Data labels or number on forward forecast trendline
    By camelight in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-15-2015, 08:35 AM
  2. Overlapping bar chart (forecast vs. actuals)
    By D-smoke in forum Excel Charting & Pivots
    Replies: 16
    Last Post: 09-16-2015, 09:52 AM
  3. 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
  4. Replies: 3
    Last Post: 04-22-2014, 09:13 AM
  5. Formula for Rolling FTE Forecast based on Historical Actuals
    By dash11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-27-2013, 01:36 PM
  6. Replies: 0
    Last Post: 08-08-2011, 05:11 AM
  7. combination of actuals plus forecast graph
    By mmcknight in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-05-2007, 03:50 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