Calculated item in Pivot table error when field is grouped

fahim ruwala 1 Reputation point
2022-01-20T05:31:51.45+00:00

166616-screenshot-11.png

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,638 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Emily Hua-MSFT 27,526 Reputation points
    2022-01-20T08:50:54.7+00:00

    Hi @fahim ruwala

    According to your image, although you did not select the Dates field for the pivot table, in the fields list, Dates is automatically grouped into the Years field, you need to ungroup this first.

    • Please select the Dates and Years fields on Rows area like following image.
      166743-capture2.png
    • Then please select one cell of Dates on pivot table, right-click it, click “Ungroup", the group fields would be removed from fields list, such as the Years field.
      166742-capture3.png
      166679-capture4.png
    • Now you can remove the Dates field, and insert the Calculated item.
      166726-capture5.png

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    2 people found this answer helpful.

  2. Michael Willis 5 Reputation points
    2023-01-31T18:08:21.76+00:00

    I ungrouped the dates, added the calculated item, but then get an error message when I try to regroup the dates.

    User's image

    It does not make any sense why I get this message after ungrouping and adding the calculated item.

    I added Formula1 which is Income-COGS:

    Pivot

    Any ideas?

    1 person found this answer helpful.

  3. Sofia Medina 1 Reputation point
    2022-10-16T02:43:38.587+00:00

    I managed to find the cause of this error, make sure you delete any previous calculated fields/items for that specific Pivot Table. Go to the PivotTable Analyze tab > Calculations group, and delete any field/item there. After this, I was able to group my dates. I hope this helps!

    0 comments No comments

  4. Ruhul Amin Anik 0 Reputation points
    2023-10-19T15:50:22.7566667+00:00

    I had a similar problem which brought me here. I solved it by opening a new blank workbook, pasted a new copy of the dataset and then created calculated item in a new pivot table. I think the problem aroused due to working in the same workbook where there were other worksheets and in one of these worksheets, I created groups previously with the same and only dataset in the workbook.

    I hope this helps.

    0 comments No comments