+ Reply to Thread
Results 1 to 2 of 2

Calculating “Share Of” Category / Row & Subtotal in Pivot Table in Excel

  1. #1
    Registered User
    Join Date
    12-04-2018
    Location
    Mars
    MS-Off Ver
    2016
    Posts
    1

    Calculating “Share Of” Category / Row & Subtotal in Pivot Table in Excel

    I want to have one column in a pivot table that is as a calculated item from the total count to display the share of total in that category. I am able to 'hack' pivot tables in a way that I get a total count for a field (which consists of variable values) and can calculate the share for a category. Custom field: count / (total_count / count). Total_count contains the total count for each category on each row of the input data.

    Now, I am but having issues to calculate the share for a subtotal. As the hack is specifically designed to aid in calculating the share of a category, it breaks for the subtotal.

    Highlighted in red the fields that are incorrect:

    ztmSb.png

    Below is a mock-up concept with correct output:

    q4qX6.png

    But the end result needs to be 'simple', so it can be broken down by each week:

    VMgHA.png

    The difference between 2 weeks can be a simple formula outside the pivot table, or can probably be a calculated item. That is not in focus here.

    Thought starters are welcome! What is the direction for a proper, unhacked Excel method?

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2010/2019
    Posts
    7,118

    Re: Calculating “Share Of” Category / Row & Subtotal in Pivot Table in Excel

    Hello Aldert and Welcome to Excel Forum.
    While I am not sure that I can help with what you are attempting, I can suggest that it will be easier for someone to help if you could upload a desensitized sample of the workbook from which the screen shots are taken.
    To upload a sample workbook click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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