Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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. Relationships are created correctly. Help me on this..
Isuru
Solved! Go to Solution.
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.
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.
Hi,
Yes Vaibhavdesai. It's working fine. Thanks for the support.
Isuru
Hi,
I tried below dax function but it didn't work.
Hi,
Can you share a sample dataset with the expected result.
Thanks.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |