+ Reply to Thread
Results 1 to 8 of 8

Comparing schedules of prices against each other using Pivots

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Comparing schedules of prices against each other using Pivots

    Hi everyone,

    Is it possible to compare Pivot tables with each other? This is for the purposes of comparing construction prices from different contractors. For level 1, in the attached Excel, not all contractors have priced each instance of Level 1 entry, and this is common with construction pricing.

    Any advice on how to do this would be appreciated

    Capture.PNG
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,880

    Re: Comparing schedules of prices against each other using Pivots

    You can do this easily with PowerQuery. You just have to name the tables first.

    Have a look at the attached - I can explain how it's done if the suggestion suits you.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Comparing schedules of prices against each other using Pivots

    Hi Ali, thank you for this. Yes, the suggestion looks good, please can you explain the method.

    Yes please. I'd just like to add, that the grand total column to the left isn't really necessary, as the Pivot is trying to analyse the different contractors, and there would never be a situation where they are all instructed.

    Attachment 741788

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,880

    Re: Comparing schedules of prices against each other using Pivots

    Here's what I did:

    1. Name each of the three tables using Formulas | Name Manager.
    2. Go to Data | Get Data | From Other Sources | Blank Query.
    3. Use the following M Code, starting with Excel.CurrentWorkbook():

    Please Login or Register  to view this content.
    4. Close & Load To ... | PivotTable Report.
    5. Set up the pivot table fields as required.

    If you look at my sample file and go to Data | Queries & Connections, you will be able to launch the query I created (called Pivot) to see the above.

    You can configure the pivot table to suit yourself, of course.

    Your attachment is invalid, so I don't know what you are trying to show me.
    Attached Files Attached Files
    Last edited by AliGW; 07-27-2021 at 01:49 AM.

  5. #5
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Comparing schedules of prices against each other using Pivots

    Thank you. This has worked very well. Is there any of excluding tables from being included in this query? I.e. if I had another table in the workbook, which had nothing to do with the analysis of the contractor prices?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,880

    Re: Comparing schedules of prices against each other using Pivots

    Yes, you can.

    In the query, at the first step (Source), simply filter the column named Name.

    If the tables you wish to exclude are all tables with default names (i.e. they start with Table), then you can use the Text Filters > Does not begin with ... option in the filter dialog to exclude any table that you have not named yourself.

    Alternatively, name the tables you want to include with a specific prefix (e.g. C_, indicating contractor), and then use the Begins with ... option.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Last edited by AliGW; 07-27-2021 at 07:40 AM. Reason: Wrong way round ... :D

  7. #7
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Comparing schedules of prices against each other using Pivots

    Thank you Ali

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,880

    Re: Comparing schedules of prices against each other using Pivots

    You're welcome. It always gives me great pleasure to open the Pandora's Box that is PQ for another forum member.

+ 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: 7
    Last Post: 01-28-2014, 05:25 PM
  2. Comparing two schedules
    By KSill in forum Excel General
    Replies: 0
    Last Post: 10-21-2013, 01:45 PM
  3. Comparing several pivots to filter information
    By Rbeusink in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-30-2013, 07:32 AM
  4. comparing schedules to events for clashes
    By rosieq in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 11:40 AM
  5. Comparing Two Pivots
    By harry_1805 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 08:12 AM
  6. comparing schedules
    By webejamn99 in forum Excel General
    Replies: 8
    Last Post: 06-15-2012, 02:53 AM
  7. Comparing Two Pivots
    By john_london in forum Excel General
    Replies: 6
    Last Post: 09-28-2010, 04:19 PM
  8. comparing two prices with IF
    By SRussell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2008, 05:00 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