Pivot Table Calculated Field using IF statement

Anonymous
2020-04-29T16:55:16+00:00

HI

I Want to calculate 15% over sales, IF The Status is a "Comission", it Status is "NO" is 0.

Status --> "Comission" or "NO"

Insert Calculated Field box:

Field Name --> IR 15%

Formula --> IF(STATUS="Comission",(Total Invest + Corretagem)*15%,0)

result is 0 for all items. 

thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

10 answers

Sort by: Most helpful
  1. Anonymous
    2020-04-30T12:17:25+00:00

    Arya,

    Ex:

    Azul $1.890 $5.50 15%

    Azul $1.830 $6.20 15%

    Azul $3.500 $8.50 15%

    When I create the calculated field (pivot table) COMISSION

    Formula --> (Total Invest + Corret)*AVERAGE(Status)

    Instead of getting 15% as average, I'm getting 45%

    thanks

    0 comments No comments
  2. Anonymous
    2020-04-30T12:19:56+00:00

    Please upload your dummy file to Onedrive and share the link here.

    0 comments No comments
  3. Anonymous
    2020-04-30T14:07:41+00:00
    0 comments No comments
  4. Anonymous
    2020-04-30T17:28:02+00:00

    "Formulas operate on sum totals, not individual records Formulas for calculated fields operate on the sum of the underlying data for any fields in the formula."

    https://support.office.com/en-us/article/calcul...

    Hence, SUM of total gets multiplied by SUM of Commission giving that results.

    Your requirement can't be fulfilled through pivot table calculated field. Power pivot is the way to go as suggested by Ashish.

    0 comments No comments
  5. Jim G 134K Reputation points MVP Volunteer Moderator
    2020-05-01T15:17:37+00:00

    Hi Licia

    I don't think you need PowerQuery or PowerPivot for this.

    What do the values in Column G (CORRET) represent?

    Thanks.

    0 comments No comments