Results 1 to 12 of 12

Pivot - Calculating ratio from grand total by categories

Threaded View

  1. #1
    Registered User
    Join Date
    11-02-2022
    Location
    Frankfurt, Germany
    MS-Off Ver
    2021
    Posts
    6

    Pivot - Calculating ratio from grand total by categories

    Hello everyone,

    I hope I can rely on your help for this one - see this data set as an example:

    Year Category Samplesize Defects
    2022 A 10 1
    2022 A 10 1
    2022 A 10
    2022 A 10
    2022 A 10
    2022 B 10 1
    2022 B 10
    2022 B 10
    2022 B 10
    2022 B 10


    When I generate a new calculated field (Defect/Samplesize) to calculate the ratio of defects, the result will be 0.03 for a grand total.
    However, if I add the categories into this, the calculation is performed for each category separately resulting in 0.04 for A and 0.02 for B:

    Ratio Column Labels
    Row Labels A B Grand Total
    2022 0.04 0.02 0.03

    What I actually want to calculate is the ratio of defects to the overall samplesize. The result I want would be 0.02 for A and 0.01 for B in this example.

    Can you please help me to get excel to do this?


    Kind regards,
    Messiah

    PS: I am sorry. Here is the link to the file of aboves example:
    Example for Excelforum.xlsx
    Last edited by TheMessiah; 11-03-2022 at 08:29 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 09-27-2019, 08:00 AM
  2. Additional grand total to pivot with percent of grand total
    By avism in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 08-16-2019, 12:26 AM
  3. [SOLVED] Pivot Table Grand total issue need two grand totals
    By alesha711 in forum Excel Charting & Pivots
    Replies: 18
    Last Post: 02-13-2019, 03:02 PM
  4. 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
  5. formula calculates ratio for Grand Total, not Sub Total for each column
    By vkievsky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-06-2013, 11:26 AM
  6. [SOLVED] Is it possible to have both Grand Total and Grand Average in a Pivot Table?
    By ANS in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 10-16-2012, 05:15 AM
  7. Pivot table - calculating percentage on grand total
    By sri023 in forum Excel General
    Replies: 3
    Last Post: 07-13-2012, 02:42 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