Hello, new to the board and look forward to participating

I am working on a pivot table that has detailed actuals for projects, but only project level budget. For each project I want to have a better/worse but only show up on the "total" line for the project. A calculated field works for this, but shows that each individual detail line of actuals is "worse" than budget which isn't really true.

Is it possible to restrict a calculated field from calculating and only show on the total rows that the pivot table generates? Thanks so much!!

Example
Expense Detail YTD Amount YTD Budget B/(W)
Project 122 Employee 1 30
Employee 2 20
Empoyee 3 5
Budget 70
Project 122 Total...................... 55 70 15


(The 15 would be calculated by this new field)