Forum Discussion
Anonymous
7 years agoNot applicable
Need help with calculated column
Hi, I am new to power BI. Need to create a calculated column in a sales fact table, by dividing unit QTY of the fact table items by the convertion column of the item dimention table. Relationship...
- Anonymous7 years ago
Hi,
If the relationships are created, you can use RELATED function in DAX to fetch field from item dimension and use it in fact table.
Below e.g uses Cost field from Product table to calculate the total cost.
Total Cost = SUMX( Sales, Sales[Quantity] * RELATED('Product'[Cost]) )Thanks.
Anonymous
7 years agoNot applicable
Hi,
If the relationships are created, you can use RELATED function in DAX to fetch field from item dimension and use it in fact table.
Below e.g uses Cost field from Product table to calculate the total cost.
Total Cost = SUMX( Sales, Sales[Quantity] * RELATED('Product'[Cost]) )Thanks.
Anonymous
7 years agoNot applicable
Hi,
Yes Vaibhavdesai. It's working fine. Thanks for the support.
Isuru