maybe try using sum(A)/sum(B) instead then A/B.
Is this helpful?
Hope this works fine.
Use the formula sum(A)/Total(Sum(B)) in Calculated field, then change the default properties of the Calculated field to percentage.
Hope this will work.