+ Reply to Thread
Results 1 to 5 of 5

trouble with calculated fields in excel for power pivot

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    trouble with calculated fields in excel for power pivot

    Hello. I'm using power pivot and I have two fields. Customers and claims. I did a distinct count for both of them. Then there is a field that is the sum of an expense for all the items. I wanted to calculate this total divided by distinct customer count to get claims cost per customer. This doesn't work and returns an error. However, if I create a calculated field WITHIN the manage data window for each this items (unique count column and then sum values for claims column) and then create a calculated field based on these calculated field, then it works. Why is this?

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: trouble with calculated fields in excel for power pivot

    if you don't create a separate measure for each calculation the division calculation is actually the sum of one field divided by the sum of the other
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    Re: trouble with calculated fields in excel for power pivot

    Hi Joseph P. I didn't exactly follow that What is the seperate measure? Isn't the distinct customer count/claims cost per customer a seperate measure?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: trouble with calculated fields in excel for power pivot

    no-if you don't create them as actual measures you can't refer to them in the third calculation. you can only refer to the base fields and then you can't use a distinct count calculation

  5. #5
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    Re: trouble with calculated fields in excel for power pivot

    Ok, I think I understand. Thanks.

+ 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. adding a calculated field to power pivot data model
    By stephme55 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-26-2016, 07:13 PM
  2. Replies: 2
    Last Post: 10-26-2015, 06:49 AM
  3. Power Pivot - calculated fields
    By Tank13 in forum Excel General
    Replies: 1
    Last Post: 08-27-2014, 12:59 PM
  4. Replies: 4
    Last Post: 06-19-2014, 12:59 PM
  5. Pivot: Calculated Fields
    By jomili in forum Excel General
    Replies: 12
    Last Post: 10-11-2010, 10:38 AM
  6. Help with pivot calculated fields?
    By Acro in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 04:29 PM
  7. Excel 2000 Pivot Table Calculated Fields
    By GreyPilgrim in forum Excel General
    Replies: 0
    Last Post: 03-28-2006, 06:07 AM

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