+ Reply to Thread
Results 1 to 2 of 2

Power Pivot & Calculated Fields using Distinct Value Count

  1. #1
    Registered User
    Join Date
    05-23-2021
    Location
    Canberra, Australia
    MS-Off Ver
    365
    Posts
    17

    Power Pivot & Calculated Fields using Distinct Value Count

    Hello,

    I'm trying to develop a pivot table that uses calculated fields. In the past, I've used a standard pivot to work out option count at the "Product Type" level (or any other level put into the pivot table) and used the count function on the "Brand + Colour for Option Count" column to count distinct values and then inserted a calculated field of "Profit $" / "Distinct Count of Brand + Colour for Option Count" to calculate the Option Productivity, as shown in column E on the Power Pivot tab on the attached example.

    It seems excel has changed the ability to count distinct values on a field (in a standard pivot) and that I now need to use Power Pivots to get that data, however I can't work out how to now include the "Option Productivity" calculation in the power pivot.

    Is there any way to do this now?!

    Thanks,


    Lis
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Power Pivot & Calculated Fields using Distinct Value Count

    The following measure is added to the data model and then used in the pivot table:
    Option Productivity 2:=SUM(Table1[Profit $])/[Distinct Count of Brand + Colour for Option Count]
    Let us know if you have any questions.
    Attached Files Attached Files
    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)

Similar Threads

  1. Help needed with fx Measures (Calculated fields) with Power Pivot
    By redalert787 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2020, 09:49 PM
  2. Replies: 3
    Last Post: 08-10-2020, 11:38 AM
  3. Calculated Field and Distinct Count
    By hpatel517 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2019, 11:08 PM
  4. [SOLVED] Power pivot or pivot table for connecting data and creating calculated fields
    By jaryszek in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-06-2019, 08:31 AM
  5. Pivot Table Distinct Value and Calculated Field
    By pjbassdc in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-30-2018, 03:44 PM
  6. [SOLVED] trouble with calculated fields in excel for power pivot
    By stephme55 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 01-29-2016, 02:01 PM
  7. Power Pivot - calculated fields
    By Tank13 in forum Excel General
    Replies: 1
    Last Post: 08-27-2014, 12:59 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