Help!
I need to convert the following into a dax calculated column ,
Can anyone help!
Thanks
Chris
I need to convert the following into a dax calculated column ,
Code:
CASE
WHEN t3.specY > 0 THEN t3.specY
ELSE t3.calcY
END *
CASE
WHEN t3.specX > 0 THEN t3.specX
ELSE t3.calcX
END as XandYProduct,
CASE
WHEN t3.specX > 0 THEN t3.specX
ELSE t3.calcX
END as SpecXOrCalcX,
CASE
WHEN
CASE
WHEN t3.specY > 0 THEN t3.specY
ELSE t3.calcY
END *
CASE
WHEN t3.specX > 0 THEN t3.specX
ELSE t3.calcX
END > 0 THEN
CASE
WHEN t3.chargfl = 'Y' THEN t7.cpi
ELSE 0
END / (
CASE
WHEN t3.specY > 0 THEN t3.specY
ELSE t3.calcY
END *
CASE
WHEN
t3.specX > 0 THEN t3.specX
ELSE t3.calcX
END
ELSE 0
END
Can anyone help!
Thanks
Chris