0

Kindly advice on DAX formulae for calculating divide and subtract together

I have Column A, B, C Formulae for calculating % as follow Colum A / (Column B-C) OR A/(B-C) Any advice on how to convert this into DAX formulae will be highly appreciated.

SQLfun
  • 53
  • 3
  • 15

1 Answers1

0

I prefer to use the DIVIDE function instead of just regular division, because this handles scenarios where the denominator is null or zero, so I would use the following for your problem (when the denominator is zero, the output of this is 0):

MeasureName:=DIVIDE(Column A, Column B - Column C, 0)
tysonwright
  • 1,525
  • 1
  • 9
  • 19