Forum Discussion
kelly008
4 years agoHelper I
Multiplication Between Columns in the same table
Hello, I am currently trying to multiply two columns in the same table, but when I do I get the wrong total's at the bottom or the wrong line data depending on the formula's I've tried to use. ...
- 4 years ago
kelly008 I think you mean you want to do something like that:
MEASURE = SUMX( 'RelProdOrderComponents', 'RelProdOrderComponents'[Expected_Quantity] * 'RelProdOrderComponents'[Unit_Cost]) )
SpartaBI
4 years agoCommunity Champion
kelly008 I think you mean you want to do something like that:
MEASURE =
SUMX(
'RelProdOrderComponents',
'RelProdOrderComponents'[Expected_Quantity] *
'RelProdOrderComponents'[Unit_Cost])
)
kelly008
4 years agoHelper I
Hi,
Thanks for replying, when I use the code you have provided I get this:
Oddly, If I take the last bracket out I get this:
Which basically just adds in another column that has the same value as column 'Test2 CustomColumn'.