+ Reply to Thread
Results 1 to 13 of 13

Calculated measure in Pivot Table

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7

    Calculated measure in Pivot Table

    Hi!

    I´ve been trying to get a measure in my pivot table to get the % of reject orders of a partner / Total order order of partner, and that it can change if I use a slicer to change it by day, month, etc.

    This is an example of the data table which I use:

    1623629878531.png

    And this is the pivot table which I have created:

    1623629917661.png

    I would like to calculate the Percentage of Rejected message type of the Partners (fail rate owner Partner) / Total orders of the Partner(this would be the total of rejected messages which from all type of fail rate owner), and that the measure could change if a filter the data by date or which whatever I filter it.

    I can do it with countifs but i need to get this percentage in the Pivot table.

    For example: in high demand por partner 1, it only has 1 count, but the total orders for this Partner are 7, the percentage would be: 1/7 = 14%


    I attached the example file and I would be very grateful if anyone could help me.

    thanks!
    Attached Files Attached Files

  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: Calculated measure in Pivot Table

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    crossposted at: https://chandoo.org/forum/threads/ca...t-table.46462/

    and at: https://www.excelguru.ca/forums/show...in-Pivot-Table
    Last edited by alansidman; 06-14-2021 at 03:28 PM.
    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 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: Calculated measure in Pivot Table

    Quote Originally Posted by fher97 View Post
    I´ve been trying to get a measure in my pivot table to get the % of reject orders of a partner / Total order order of partner, and that it can change if I use a slicer to change it by day, month, etc.
    Should the total count change to reflect your slicers, or should it always be the total for that partner?
    Rory

  4. #4
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7
    Quote Originally Posted by rorya View Post
    Should the total count change to reflect your slicers, or should it always be the total for that partner?
    The total should reflect the total count of my slicers, but Iin this case I need that the total changed by date, if I filter any day it should give me like this: (total orders with fail raite owner Partner of each Partner I have in my rows)/(total order with all fail rates owner of each Partner in my rows) and the denominator has to be the one that has to change when I use any filter, slicer or change the date, because the numerator is the count that gives me the pivot table without any complex calculation

  5. #5
    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: Calculated measure in Pivot Table

    So to clarify: both numbers should be filtered by whatever slicer value you select? For example, filtering for June would produce a ratio of 1/6 for high demand partner 1?

  6. #6
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7
    Quote Originally Posted by rorya View Post
    So to clarify: both numbers should be filtered by whatever slicer value you select? For example, filtering for June would produce a ratio of 1/6 for high demand partner 1?
    Exactly they should be filtered whatever slicer value I select,The correct in high demand ratio would be 1/7 it has to be the (partner failrate owner of that reject message from Partner 1 of June)/ (total orders of June for partner 1(taking on count all the failrate owners))

  7. #7
    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: Calculated measure in Pivot Table

    There are only 6 June entries for partner 1, not 7. So should it be 1/6 or should the denominator ignore the month filter?

  8. #8
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7
    Quote Originally Posted by rorya View Post
    There are only 6 June entries for partner 1, not 7. So should it be 1/6 or should the denominator ignore the month filter?
    Sorry! My bad, you are completely right, it should be the way you explained before, 1/6

  9. #9
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7

    Re: Calculated measure in Pivot Table

    But I need that this measure, works with other filters like week or day

  10. #10
    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: Calculated measure in Pivot Table

    OK, so is this what you want?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7

    Re: Calculated measure in Pivot Table

    It´s quitely like that, but the ratio doesn´t gives me the 1/6 in the partner 1 high demand.

    Could you please help me out with this arrangement and share me the measure?

    Ill thankyou a lot.

  12. #12
    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: Calculated measure in Pivot Table

    It should do if you add a date filter. For all dates (as it is currently) it would be 1/7

  13. #13
    Registered User
    Join Date
    06-14-2021
    Location
    us
    MS-Off Ver
    2019
    Posts
    7

    Re: Calculated measure in Pivot Table

    Thats exactly what I needed. Thank you so much!!

+ 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: 4
    Last Post: 07-01-2020, 02:13 AM
  2. Creating calculated field and calculated item into a pivot table
    By dvpe in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-12-2019, 12:15 PM
  3. Pivot Table: Grand Total different measure from Column measure
    By chinneywow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2019, 06:22 AM
  4. pivot table with DAX measure
    By mlaxx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2019, 02:24 PM
  5. Replies: 1
    Last Post: 01-15-2019, 08:54 PM
  6. Issue with Calculated filed in Pivot Table (wrong output calculated)
    By martinrt in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-18-2018, 03:11 PM
  7. Powerpivot Calculated Measure to remove blanks from pivot table/chart
    By hbusche in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-17-2013, 01:23 PM

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