When creating a donut chart, you end up having two marks cards.
Dit you add your calculation to the correct marks card?
In case this did not really help, please attach you packaged workbook so we can take a look at it!
I've posted a new question because there was another error that appeared.
Please do take a look!