The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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] )
)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |