+ Reply to Thread
Results 1 to 17 of 17

Add calculated item to pivot table

Hybrid View

  1. #1
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    re: Add calculated item to pivot table

    Hi

    Sorry, I missed a bit.

    M3: =IF(K3>L3,(K3-L3)*0.1-SUMPRODUCT(--($B$2:B2=B3),--($G$2:G2=G3),($M$2:M2)),0)

    Copy from M3 down as required.

    rylo

  2. #2
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    re: Add calculated item to pivot table

    Thanks Rylo

    But this has still not worked!

    This still does not erdicate the value in col M when value in col K is NOT the highest for that therapist in that week.

    Using the above formula you suggested and placing it in M3, then selecting it and using the corner handle to copy it down col M - I still get Row 17 showing that Aimee made £714.10 on 08/06/07 (week 2 of yr 07/08 Q1) and there is a value in M17 as 714.10 is above 600 - but this should be "zero", as this is not the MAX value that Aimee has earned in week 2 of Yr 07/09 Q1 - in fact her Max value was earned on Row 20 (09/06/07) - that also has a value in M20.

    The pivot table adds the values of M17 and M20 to give 24.98 - when infact her total commission for the week is value in M20 only i.e. 13.57.

    still needs more teaking - the formula:

    M17: =IF(K17>L17,(K17-L17)*0.1-SUMPRODUCT(--($B$2:B16=B17),--($G$2:G16=G17),($M$2:M16)),0)
    M20: =IF(K20>L20,(K20-L20)*0.1-SUMPRODUCT(--($B$2:B19=B20),--($G$2:G19=G20),($M$2:M19)),0)

    Are these correct?

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    re: Add calculated item to pivot table

    Hi

    Aimee's total sales for week 2 is 849.80 as shown in K20. So here commission for the week should be 24.98. If you add the values from M17 and M20, you get 24.98.

    What this formula is doing is showing in column M the commission component for each of the sales when here total sales is over the threshold. It doesn't try to find the max sales value and only apply the commission to that entry.

    As you are using a pivot table, which will add all the commissions, I didn't thing that this would be an issue.

    Your original brief wanted

    What I want to do is either have another pivot table or to add an calculated item to the weekly inc pivot table showing me how much commission each therapist took each week?
    I've taken the pivot table option which will add all the commission components and give the total commission for the therapist for the week.

    Can you check that the total commision when totaled for each week is correct?

    rylo

  4. #4
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    re: Add calculated item to pivot table

    Dear Rylo

    You have understood my brief correctly.

    I've just re-checked all my formulas and it appears that it was my error - your formulas work - but they have now thrown up another problem - I'm getting Negative com values.

    See attached revised sheet - all negative values have been coloured red, and I've taken one of the values and highlighted it yellow and tried to work out why this happened.
    Last edited by tony0710; 06-25-2009 at 09:21 AM. Reason: deleted - by poster, as he fixed problem, but got new problem

  5. #5
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    re: Add calculated item to pivot table

    I'm having trouble in attaching new file - saya that there is a database error - please help.

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    re: Add calculated item to pivot table

    Hi

    Have you tried to zip the file before attaching?


    rylo

  7. #7
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    re: Add calculated item to pivot table

    Thanks Rylo

    Perhaps the ordinary xls file was too big - but please find attached file and hope that you can see the problem at hand.

    Thanks for any further help.
    Attached Files Attached Files
    Last edited by tony0710; 06-26-2009 at 06:18 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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