Then the code should work. Anyways try this:
=if(isnull(UserResponse([Product Group];"Product Group")) and isnull(UserResponse([Product];"Product"))) then "Total" else "PnL For " + UserResponse([Product Group];"Product Group") + " - " + UserResponse([Product];"Product")