Hi Lucy,
It is easier if you create a series of radio buttons, where P=1 and A=0, and then add up the export values.
The sum text field can be configured to display the sum of the radio buttons (in the Calculate tab of its properties).
Have a look at this previous thread: