DJWheezyWeez
Technical User
I'm trying to use an if statement to create a calculated field to use in a pivot table. The pivot table is grouped by a salesperson, customer, month, and product type then I have a sales and a year field to create a calculated field. I'm attempting to create a calculated field using =if(Year=2011, Sales, 0) to show sales if the year is 2011 (previous year sales) and do the same for 2012 to find the current year sales. When I drag the newly created field to the pivot table, it doesn't work as I thought it would. It looks like it's only looking at data on the first line when you drill down and look at the detail. I'm not sure if this is the right way to go about this or if it's even possible but I'm trying to avoid creating new columns in the details and including that in the pivot table.
Any suggestions? Thanks in advance!
-DJWW
Any suggestions? Thanks in advance!
-DJWW