+ Reply to Thread
Results 1 to 5 of 5

Pivot table with slicers for scenarios and periods

  1. #1
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Pivot table with slicers for scenarios and periods

    Hi All,

    I'm trying to increase the functionality of an existing pivot table which is currently being used for monthly reporting purposes.

    Basic working example attached compares the variance between 2 selected scenarios (options: Current Forecast, Prior Forecast & Budget) via slicer for a preset period i.e. Full year. This is done via "Show values as Difference From Scenario (Previous)" in the value field settings.

    I'm hoping to add an additional slicer to select period i.e. month, Q1, FY18, FY19 etc. without having to replicate data if possible.

    To Note: The data set is large +- 50000 rows, refreshed each month multiple times which takes time in itself and covers periods by month, quarters and Full year for 4 years.

    Any help or suggestions would be appreciated.
    Attached Files Attached Files
    Last edited by Gti182; 07-23-2018 at 06:38 AM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Pivot table with slicers for scenarios and periods

    I don't see where you have a date associated with the data. Also, to get the maximum use of the pivot table, the data should be "nomalized" as shown in Sheet 2 of the attachment.

    I also took a guess that you would want the prior forecast to be based on the previous month. I set up some helper columns to get this value.

    It is the combination of date, type and Item that makes a record unique, so to avoid an ugly array formula, I made a composite key by concatenating these items together.

    The Row column finds the the matching key for the previous month: =MATCH(EDATE([@Date],-1)&":"&SUBSTITUTE([@Type],"Prior","Current")&":"&[@Item],[Composite],0) I had to do a little "two step" here what I really want to match is the previous CURRENT Value not the previous PRIOR value, so I used the substitute command to change PRIOR to CURRENT for the lookup.

    The New Value columns simply says if the Type is Prior, use INDEX / MATCH to find the prior value. otherwise use the posted value. The end result is that the value in the Value column is ignored if the type is prior and a lookup is used instead.

    The pivot table gives you an idea of one of the many ways in which the data could be displayed. You can group the dates by Year and Quarter or add helper columns to compute these and use them in slicers.

    This table assumes that you enter the first of the month you are tracking. Safeguards can be added so you can't enter in a bad date.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Re: Pivot table with slicers for scenarios and periods

    Thanks for the reply dflak. It makes sense although a bit more complex than i was hoping.

    I think the problem lies with the way my current data is structured i.e. 1 row with all scenario's and periods on the vertical axis.

    I've modified the data a bit (transposed vertical) for it to work in the pivot as this seems to be the only way i can achieve the scenario and period slicing options with variance analysis.
    Attached Files Attached Files
    Last edited by Gti182; 07-20-2018 at 10:16 AM.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Pivot table with slicers for scenarios and periods

    You are on the right track. I suggest you look into Pivot Table Grouping options for dates. FY might not work out. But it can group by week (or any number of days), months, quarters and years.

  5. #5
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Re: Pivot table with slicers for scenarios and periods

    Thanks Dflak i think i have enough to go on to update my model

+ 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] Pivot Table & Slicers
    By Statz in forum Excel General
    Replies: 3
    Last Post: 10-09-2017, 09:35 PM
  2. Slicers for Pivot Table
    By Balzer13 in forum Excel General
    Replies: 1
    Last Post: 08-03-2017, 10:36 AM
  3. [SOLVED] Is there any way to tell if a pivot table has slicers?
    By ChemistB in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-07-2016, 12:56 PM
  4. [SOLVED] Disconnect Slicers, Change Pivot Table Source, Reconnect Slicers: a problem
    By Geoff. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2015, 02:27 PM
  5. Can you have pivot table fields as slicers?
    By no.18shirt in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-19-2013, 10:39 AM
  6. Replies: 2
    Last Post: 05-24-2013, 03:58 PM
  7. Calculating payment lines with different scenarios and periods
    By wmo102 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2012, 12:22 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