Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 all the values ando not by ProductID.
Regards
Solved! Go to Solution.
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
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
What are your relationship keys between those two tables ? Make sure that direction is 1-M and cross filtering is set to single.
Also share the DAX of your "Total sales" Measure.
Proud to be a Super User!
@Anonymous , It should do the correct sum, Unless
1. Join is inactive
2. You are using product ID from another table
3. You have a measure where you have used all or allselected , or filter without filter function
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |