Forum Discussion
Multiplication Between Columns in the same table
- 4 years ago
kelly008 I think you mean you want to do something like that:
MEASURE = SUMX( 'RelProdOrderComponents', 'RelProdOrderComponents'[Expected_Quantity] * 'RelProdOrderComponents'[Unit_Cost]) )
kelly008 I think you mean you want to do something like that:
MEASURE =
SUMX(
'RelProdOrderComponents',
'RelProdOrderComponents'[Expected_Quantity] *
'RelProdOrderComponents'[Unit_Cost])
)
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'.
- SpartaBI4 years agoCommunity Champion
kelly008 you had a bracket down down below 🙂
Anyway, so I didn't understand what you want to achieve.
Can you share the visual you have without testing and just the column of the desired result by drawing the logic and the expected number.
Also, Expected_Quantity] and [Unit_Cost] are they measures or columns? If measures what are they?
Is [description] a key in your table or a value that represnet multile rows?
Can you share also a screenshot of the data model table