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 I hope I can explain well what I am trying to achieve.
I have 3 tables which I am trying to link together.
In the Salesline I have many lines with the same Item and sold Quantity.
In The Warehouse i also have many lines with the Same Item and the stored Quantity.
(Red colums are not availabel in the datasource at the Moment.)
I would need the sum of theses two Quantitys and subtract them from Each other.
I want to show the individual saleslines from my sales filterd by Item.
At the end of the tables I want to see how many parts are left in my stock.
So in my target table for the same ItemID in each line should be the same value.
I tried it with verious measures or adding the grouped Sum in the datasource but could not find a way to make it work.
I hope its understandable.
Thank you for your help!
Solved! Go to Solution.
Hi @Anonymous
I guess the number should be 50 i.e. (10 + 40) not 30
Please try the following measures
Quantity Sum =
CALCULATE (
SUM ( Salesline[Quantity] ),
REMOVEFILTERS (),
VALUES ( Sales[Item] )
)Warehouse Sum =
CALCULATE (
SUM ( Warehouse[Warehouse] ),
REMOVEFILTERS (),
VALUES ( Sales[Item] )
)
Hi @Anonymous
I guess the number should be 50 i.e. (10 + 40) not 30
Please try the following measures
Quantity Sum =
CALCULATE (
SUM ( Salesline[Quantity] ),
REMOVEFILTERS (),
VALUES ( Sales[Item] )
)Warehouse Sum =
CALCULATE (
SUM ( Warehouse[Warehouse] ),
REMOVEFILTERS (),
VALUES ( Sales[Item] )
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |