fadetograham
New Member
- Joined
- Jul 6, 2015
- Messages
- 39
Hi everyone
I have a pivot that needs to show a planned journey time, actual journey time and then the variance. The problem I have is that the calculated field in the pivot won't display the negative values in the variance where the journey took less time than planned. It just displays #######, which invalidates the subtotals too.
Outside of the pivot table I can get the figures I need by using the below formula where E4 is actual time and D4 is planned time. When I adjust it for use in a calculated field (swapping e4 for 'actual' etc) it doesn't work. =IF(e4-d4<0, "-"&text(abs(e4-d4),"h:mm"), e4-d4)
Is there an adjustment to the basic =actual-planned formula in the calculated field which will get it to show the correct figure?
Thanks in advance for any help you can give.
Graham
I have a pivot that needs to show a planned journey time, actual journey time and then the variance. The problem I have is that the calculated field in the pivot won't display the negative values in the variance where the journey took less time than planned. It just displays #######, which invalidates the subtotals too.
Outside of the pivot table I can get the figures I need by using the below formula where E4 is actual time and D4 is planned time. When I adjust it for use in a calculated field (swapping e4 for 'actual' etc) it doesn't work. =IF(e4-d4<0, "-"&text(abs(e4-d4),"h:mm"), e4-d4)
Is there an adjustment to the basic =actual-planned formula in the calculated field which will get it to show the correct figure?
Thanks in advance for any help you can give.
Graham