If you need the result in %, create a calculated field 'Ratio' > SUM([A])/SUM([B]). Click 'OK'. You should now see it under Measures, right-click > Hover over 'Default Properties' > Select 'Number Format' > Select 'Percentage' and Decimal Places you want. Attached screenshots,