I think you can't hide / remove the partial sum total line in a pivot table based on a condition for single dimensional values.
There might be a work around if you create your total lines as dimensional values in your data model, but to answer this, you would need to post more details about your data model and data.