+ Reply to Thread
Results 1 to 4 of 4

Count SKUs where criteria is met (calculated field)

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Count SKUs where criteria is met (calculated field)

    Hi all,

    I am struggling to use calculated fields instead of additional columns in the data set. I need to count the number of SKUs for different regions, but only if the order units (OO UNT) are greater than 0.

    I have 5 columns where these conditions are already calculated directly in the data set (APAC, JPN, KOR, GCSEA, ANZ), so the pivot gets it from there.

    Now I want a 6th pivotfield named "APAC (EXCL ANZ)", that is basically a calculated field which gets the number of SKUs for whole "APAC" without the region "ANZ".

    Obviously I can create an additional column where this is calculated first, but since the data is pasted from somewhere else, I want to use a calculated field instead. How would that work? I tried, but don't seem to get the correct results...

    I attached a sample file to make this more clear.
    Attached Files Attached Files

  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: Count SKUs where criteria is met (calculated field)

    It won't work for the calculation you need unless you have Power Pivot and load the data to the data model. Your calculated field will always be calculating as the Max of the three totals, not as the total of the max for each detail row.
    Rory

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: Count SKUs where criteria is met (calculated field)

    making sense now... Thanks for clarifying! I assume I have to create additional columns then, as I currently cannot use the Power Pivot function.

  4. #4
    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: Count SKUs where criteria is met (calculated field)

    Yes, you will need additional columns.

+ 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. Calculated Field as Count and Not Sum?
    By tisimp14 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 01-02-2018, 11:03 AM
  2. Pivot table calculated Field from count of values
    By 99problems in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2015, 05:44 PM
  3. Insert calculated field with count and sum elements
    By splreece in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2015, 07:08 AM
  4. [SOLVED] Calculated Field for Percentage of a Count
    By trisoldee in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-22-2015, 07:55 PM
  5. [SOLVED] Pivot Table - Calculated Field - Count and Sum
    By rtabaldi in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-14-2014, 01:10 PM
  6. Replies: 0
    Last Post: 10-24-2013, 10:59 AM
  7. Count in a calculated field (Pivot Table)
    By Joćo Morsa in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-18-2013, 02:47 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