Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello everyone,
I have a table that looks like this:
This table is currently filtered on article (first column). Within this filter I want to have a measure which calculates the inventory based on the required quantity of each row. The inventory is currently 17.992 so, based on the first row in the table, the new inventory number should be 17.992 - 30.000 = -12.008. So far so good. However, the calculated inventory on the second row should be -12.008 - 84.000 = -96.008. What it does now, is look back at the at the starting inventory (17.992) and use that to calculate the new value, instead of using the calculated inventory from the new row. The first 4 rows should look like this (ignore the top most row seeing I've put the inventory there for better understanding):
Hi @RDinho
You can refer to the following example
Measure=
var _suminven=17992
return CALCULATE(_suminven-SUM(Articlelines[Required Quantity]),FILTER(ALL(Articlelines),
Articlelines[Startdate] <= SELECTEDVALUE(Articlelines[Startdate]) &&Articlelines[Status] = "Open" &&Articlelines[Artikelnummer] = SELECTEDVALUE(Artikelregels[Artikelnummer])))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |