To create a variable...
1. Under the Report menu, choose "Report Properties".
2. Click on the Variables Tab (in the left pane).
3. Click the Add button.
4. Give the variable a name.
5. click the FX button to add a calculation
... the rest works like usual.