Forum Discussion
sterry
11 years agoNew Member
Product function in calculated column or measure
How do I add a calculated column that simply is the product of the values in two other columns (Qty on Hand X Unit Cost)? Seems like it should be easy enough to do, but I'm struggling with it... Th...
- 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.
Greg_Deckler
11 years agoCommunity Champion
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]
sterry
11 years agoNew Member
Perfect. Thanks. That's simple enough. I was convinced that I had to use some type of built in function to do a calculation.