Hello Aw_style_66,
I'm Ibhadighi and I'd happily help you with your question. In this forum, we are Microsoft consumers just like yourself.
To add a calculated field in Excel Pivot Tables, you can follow these steps:
- Click any cell inside the pivot table.
- Go to Pivot Table Tools –> Analyze –> Calculations –> Fields, Items, & Sets.
- From the drop-down, select Calculated Field.
However, in your case, you want to count the number of years with a monetary amount. Unfortunately, Excel Pivot Tables do not support COUNTIF or similar functions in calculated fields.
As a workaround, you could add an additional column in your source data that indicates whether there is a monetary amount for each year (1 if there is an amount, 0 if not). Then, you can use this column in your Pivot Table to sum up the values, which will give you the count of years with a monetary amount.
Remember to refresh your Pivot Table after adding new data to your source data.
I hope this helps.
Best Regards,
Ibhadighi