Forum Discussion
Product function in calculated column or measure
- 11 years ago
Load your PBIX, and go to your Data and go to the table where the columns are. Click "New Column" and enter the formula:
Inventory Cost =[Qty on Hand] * [Unit Cost]
- 11 years ago
andre Anonymous Instead of calculated column can use Measure:= SUMX( TableName; TableName[Qty on Hand] * TableName[Unit Cost] ) so you can iterate the whole table like a calulated column.
you can do this by building up a final measure by utlizing two hidden measures.
Create and Hide these measures
Measure1 := SUM([Qty on Hand])
Measure2 := SUM([Unit Cost])
Final measure
Measure3 := Measure1 * Measure2
andre Anonymous Instead of calculated column can use Measure:= SUMX( TableName; TableName[Qty on Hand] * TableName[Unit Cost] ) so you can iterate the whole table like a calulated column.