Pivot table: trying to add a calculated field, but it's greyed out

Anonymous
2017-02-20T01:04:01+00:00

Hi,

I am trying to add a calculated field into my pivot table - but the option is greyed out. 

My data is coming from a query table. While creating a pivot table i insert in a data model. 

I am showing the %row total of certain categories per week, but also want to add the total count of all categories per week. For that i am trying to add a calculated field but it's greyed out. 

Another option i tried was I dragged the same data column into the pivot table values field - but instead of just showing me the total count per week it's also showing count of each category. How can i just add the total count of categories as a second field? It's essentially the same data column as the % row total with no calculation. i attached the image - the yellow column is what i want to add to the pivot table. 

Thanks,Nana  

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
Answer accepted by question author
  1. Ashish Mathur 100.9K Reputation points Volunteer Moderator
    2017-02-20T23:22:44+00:00

    Hi,

    Do not add the Data to the Data Model.  Now you should be able to write the calculated field formula.

    217 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-02-20T16:09:52+00:00

    Can anyone from Microsoft community help with this question? 

    I have Excel 2016, and 365 ProPlus.

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-02-20T19:20:30+00:00

    Hi Nana,

    To resolve your concern, simply refer to this support article and follow the steps provided.

    Let us know if you need further assistance.

    Thank you.

    7 people found this answer helpful.
    0 comments No comments