Forum Discussion
Anonymous
3 years agoNot applicable
Sum and Summarize from other table
Hi All, How could I create a column in "ProductMaster" table, with a sum of the "linetotal" column in "OrderDetail_All" table, filtered by the "productID" column. A simple SUM gives me the sum of al...
- 3 years ago
Hi, Anonymous
You can try the following methods.
Sample data:Column = CALCULATE ( SUM ( OrderDetail_All[LindTotal] ), FILTER ( OrderDetail_All, [ProductID] = EARLIER ( ProductMaster[ProductID] ) ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
v-zhangti
Community Support
3 years agoHi, Anonymous
You can try the following methods.
Sample data:
Column =
CALCULATE (
SUM ( OrderDetail_All[LindTotal] ),
FILTER ( OrderDetail_All, [ProductID] = EARLIER ( ProductMaster[ProductID] ) )
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly