+ Reply to Thread
Results 1 to 6 of 6

Best practice for pivot table data layout

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    13

    Best practice for pivot table data layout

    Hi there

    I'm trying to find out what is the best practice for laying out data to use in a pivot table.

    I will be using excel to examine sales data that is exported from our shop till. The data I want to be able to look at are the sales for each product by month then by year, ongoing.

    My instinct is to create a worksheet for each year of sales. I currently have data for 2016,2017 and current year and combine it into one pivot table. Fingers crossed, I will be adding many more years of data to this.

    Is this the best option or should all data be in one, long worksheet?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Best practice for pivot table data layout

    Create single flat table, instead of multiple tables. It's far easier to create and manage PivotTable from single source.

    Have a read of...
    https://trumpexcel.com/source-data-for-pivot-table/
    http://excelpivots.com/excel/pivot-table-source-data/
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

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

    Re: Best practice for pivot table data layout

    or join all tables (with the same structure I hope) via PowerQuery aka Get&Transform and create PivotTable from QueryTable

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Best practice for pivot table data layout

    Quote Originally Posted by Netlon View Post
    Hi there
    My instinct is to create a worksheet for each year of sales. I currently have data for 2016,2017 and current year and combine it into one pivot table. Fingers crossed, I will be adding many more years of data to this.
    Is this the best option or should all data be in one, long worksheet?
    My opinion make 1 long worksheet. Your instinct is based on human nature. Humans don't like to scroll thru endless long list. Excel does not care it will warn you if it is to much for "him" (just over the 1 miljon rows mark)
    Also I think sales data becomes more valuable if you can compare more than one year, then you can f.e. recognize seasonal trends easier.
    If you make separate sheets for every year you still have to manual compares on year to year.
    having 1 table for many years also ensures you are aware of impact of changes to the collected sales data, when you want to add a new column you then also have to decide if the history stays blank or that you can enrich those lines also with historical data. If you have separate tables people will much easier remove one column or randomly add one in the middle so when you do compares over years it can cause errors as data is not in the expected columns.

  5. #5
    Registered User
    Join Date
    01-08-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Best practice for pivot table data layout

    Many thanks for your quick replies and links. They have really helped.

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

    Re: Best practice for pivot table data layout

    You are welcome

    I suggest PowerQuery, PowerPivot with DataModel

    have a nice day

+ 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: 5
    Last Post: 03-08-2018, 08:14 AM
  2. Large amount of data & special pivot table layout
    By archer90 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-08-2016, 06:14 AM
  3. [SOLVED] Pivot table-remove expand and close from pivot layout
    By excelmr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2015, 07:00 PM
  4. Pivot Table Layout
    By frustrated in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-06-2015, 02:40 PM
  5. Replies: 0
    Last Post: 07-10-2010, 03:02 PM
  6. Replies: 1
    Last Post: 12-12-2008, 11:38 AM
  7. Pivot Table Layout Help
    By mardman in forum Excel General
    Replies: 1
    Last Post: 08-23-2005, 06:05 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