+ Reply to Thread
Results 1 to 4 of 4

Only Show Grand Total For One Field, subtotal and grand total for other

  1. #1
    Registered User
    Join Date
    12-11-2017
    Location
    LEEDS,ENGLAND
    MS-Off Ver
    2016
    Posts
    15

    Only Show Grand Total For One Field, subtotal and grand total for other

    Hi

    I have a pivot table which has site & product group in Rows, week commencing & date ordered in columns and Tonnes Ordered in the values section. This works fine as the pivot is showing tonnes ordered for each site, each product group, each day with totals for the week (as it should).

    I now want to work out what my average tonnes ordered is for each product for the whole month (not each day, not each week), I envisage a column right at the end saying average. I have created a formula which totals the tonnes per product group and divides the number of days gone in the month. When I insert this formula into values, it shows me the average for each day, each week and a "grand total" at the end.

    I understand why it does this, however I only want a grand total column at the end that shows the average per product group. I know I can remove sub totals, but this will then remove the totals for the tonnage (which I still want to keep).

    Is there anyway I can do the above?

    Hope this makes sense, Kind Regards.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Only Show Grand Total For One Field, subtotal and grand total for other

    It's hard to be sure without a sample workbook but, assuming you're using the data model, you should be able to create a Set that removes the columns you don't want from the pivot table.
    Rory

  3. #3
    Registered User
    Join Date
    12-11-2017
    Location
    LEEDS,ENGLAND
    MS-Off Ver
    2016
    Posts
    15

    Re: Only Show Grand Total For One Field, subtotal and grand total for other

    Hi Rory

    Thank you for taking the time out to reply. It's clear I have posed my question incorrectly / without any detailed explanation. What you have provided is really good to know, however, doesn't really work in this scenario (this is because I didn't explain thoroughly what it is I am trying to do). As our pivot table grows throughout the month, the column labels will expand and from what I can see, I will have to keep editing the set as we go along in the month. I have attached a basic example now and this should make things clear.

    I have my week number and a date within that week in columns, customer and product type in rows and the tonnage sold in values. I now create a measure called average (which at the moment is sum of tonnage / distinct count date), however this is incorrect because if we are on WD 6 but sold a product on only 5 days, it will divide by 5 rather than the 6 we want. Ps we don't need anything complicated to work out WD gone in the month as we would only sell Monday to Friday hence why the counting of dates.

    I then want the average to only show at the end (so in the example I don't require the red columns but only the yellow at the end). With sets, I would have to keep editing the set and removing the columns I don't need as the pivot expands.

    Hope this makes sense and apologies for not explaining in length the first time round, however thank you for the above, it is useful to know

  4. #4
    Registered User
    Join Date
    12-11-2017
    Location
    LEEDS,ENGLAND
    MS-Off Ver
    2016
    Posts
    15

    Re: Only Show Grand Total For One Field, subtotal and grand total for other

    attachment
    Attached Files Attached Files

+ 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. Need help creating pivot - grand total and grand total as % of column value
    By obionenairobi in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-18-2017, 08:00 AM
  2. [SOLVED] excel 2007 grand total of all subtotal
    By cpramesh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2016, 06:56 AM
  3. Replies: 1
    Last Post: 04-13-2015, 07:15 PM
  4. Macro to solve total, subtotal and grand total automatically...
    By blorban in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2015, 05:25 PM
  5. subtotal function grand total issue
    By tango in forum Excel General
    Replies: 1
    Last Post: 07-11-2009, 08:40 PM
  6. Subtotal/Grand Total Problem
    By johncassell in forum Excel General
    Replies: 2
    Last Post: 05-02-2008, 08:22 AM
  7. Subtotal \ Grand Total in VBA
    By mrdata in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2006, 05:03 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