+ Reply to Thread
Results 1 to 10 of 10

Pivot Table to Analyze Combinations of "Sum of..." Values

  1. #1
    Registered User
    Join Date
    08-28-2017
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    40

    Pivot Table to Analyze Combinations of "Sum of..." Values

    So I have a simple enough pivot table that plots "Sum of..." billing information over time. There are multiple tasks, so the plot has multiple lines. Basically, I've achieved the following with my pivot chart: https://excel-example.com/other-tuto...ble-line-chart

    Final-Line-Chart.jpg

    Referring to that link / the image of the final product where there are separate lines (separate "Series"? Is that the right terminology?), I want to be able to play around with my pivot chart and look at combined lines. So maybe I want to consider "Hans"+"Jack" lines; or "Tom"+"Hans".

    The least convenient solution is to go into the data table and start renaming the Series data entries to some common name (e.g. Find and Replace all "Hans" and "Tom" entries to "Hans+Tom"). That's not a very dynamic solution...

    However, this is another case where I believe someone else has already thought of this -- and in fact it must be a common problem... I just haven't had luck searching for the right blog that details how to solve it! Can someone point me in the right direction?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    Many of our users here are reluctant to open web sites that they are unfamiliar with. Because of that, we have the option to attach files to this website. I urge you to do that. Click on the Go Advanced button at the bottom of a reply screen. Scroll down to Manage Attachments and follow the instructions.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    Do you mean you want to add the values for various series, or just show any two series rather than three. If the latter then using a Slicer with your Pivot Table would do that.

    Otherwise upload the workbook so that we can see in context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    08-28-2017
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    40
    Quote Originally Posted by Richard Buttrey View Post
    Do you mean you want to add the values for various series, or just show any two series rather than three. If the latter then using a Slicer with your Pivot Table would do that.

    Otherwise upload the workbook so that we can see in context.
    To Alan: Fair point. But as long as the image is showing in my post, actually there's nothing needed in that link.

    To Richard: I want to combine, not just filter. I've had some success in the last few minutes, using Group..., but Grouping seems to get really complicated in my dataset. Either you have a suggestion that isn't the Group feature, or you can comment on Groups being complicated - - - perhaps a blog that helps to demystify it.

    Unfortunately, I would have a lot of work to anonymise my real workbook, so I can't share that - - so that may be an impediment to further advice if your answer is going to be "Use Groups, they're easy!", because I'm currently using Groups and they're hard Mainly, I create a group and I have to play with filters to get the original two Series off the chart, and to show the combined series instead...

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    Since you're adding I was going to suggest a helper column (or row) alongside your data which would be a new series for the chart. This would sum the relevant values from the data based on two criteria cells which you'd use to indicate which cells to add.

    Difficult to advose further and be quite sepecific without seeing a workbook. We don't need the whole workbook, just a representative copy, anonymised of course.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    Please Login or Register  to view this content.
    We cannot manage or analyze your data from a picture.

  7. #7
    Registered User
    Join Date
    08-28-2017
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    40

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    I began having a go at anonymising the data -- it'd be too much work in my case. But to be clear, I really never hoped for anyone to give me the exact solution to the problem. I've had lots of success on this forum just describing the problem, and getting pointed to helpful blogs that discuss how to achieve what I'm looking for.

    At this point, I've proceeded with using the Group feature to select multiple Series items (referring back to that original graph image I showed, I am effectively adding together the Tom and Hans series of data).

    The challenge I'm currently trying to resolve is understanding what's happening when two Series are combined.

    1. When you Group two Series (e.g. Tom + Hans), it creates a new PivotChart Field, and that field is added to the "Legend (Series)".

    2. a. So once again, referring to the first image I had attached, I would have put a field called "Names" as my "Legend (Series)"; and a field called "Numbers" in "Values".
    2. b. then when I group any names together (e.g. "Tom+Hans") then it creates a new Field, default named "Names2" and puts that field in "Legend (Series)".
    3. However, the plot looks exactly the same as before. The three names are plotted as separate series still... There are two sets of Legend (Series) filters: Names and Names2. Names lists the names separately. Names2 lists Jack and Tom+Hans.
    4. If I remove the field "Names" from the "Legend (Series)", leaving only Names 2, then I get what I wanted -- Yay! Just two series are plotted -- Jack and Tom+Hans.

    I need to understand the above, because my "nice to have" step is:

    5. I want one filter that lets me plot all three names (Tom, Hans, Jack) separately AND Tom+Hans.

    Again -- really sorry I cannot provide the anonymised data set. I'm mainly hoping the image I provided, and the simplicity of the description, inspires some understanding of a common problem that someone's faced before; and from there, I can get a link to some useful blog. I'm not looking for the exact steps in the context of my data set.

  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,460

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    You don't need to provide your entire dataset. Just a small subset, anonymised, that shows the issue at hand will do. It really is MUCH easier for members to help with a sample workbook, so please reconsider.
    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.

  9. #9
    Registered User
    Join Date
    08-28-2017
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    40

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    The answer turned out to be adding Calculated Items, instead of Groups. Groups were a bit of a red herring here.

    So the final answer, to analyze combinations of series, is:

    You may use either Groups or Calculated Items; however, if you want to show your separated items and/or the combination, you have to use Calculated Items. Calcualted Items will also just be a lot easier to understand. You will effectively just add a new series to your list of Series being plotted. Groups create new fields, and it's really messy.

    I'm sure there's a lot more depth to the difference between Groups and Calculated Items. I did a brief search to find any blogs describing the difference -- not much luck. I would give credit to any follow-up poster who has such a link or explanation for us.

  10. #10
    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,460

    Re: Pivot Table to Analyze Combinations of "Sum of..." Values

    Thanks for letting us know and marking the thread as solved.

+ 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. VBA Updates Pivot Table by cell contents, i want to show "blank" instead of "all"
    By mattinwpg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2017, 10:58 PM
  2. Replies: 6
    Last Post: 11-07-2015, 02:03 PM
  3. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2015, 09:56 AM
  4. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2015, 06:14 AM
  5. Replies: 0
    Last Post: 10-21-2013, 05:06 PM
  6. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  7. Pivot to show table content in "Values" as-is & not perfrom any Calculation
    By hemantkrishnan in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-30-2013, 08:45 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