Question: how to calculate the difference between two numbers in a pivot table?
Answer: Right-click one of the Units value cells, and click Show Values As. Click Difference From. In the Show Values As dialog box, from the Base field list, choose Date. ...  From the Base item list, choose (previous).