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!View all the Fabric Data Days sessions on demand. View schedule
Dears,
I’ve Purchases transactions for Items, and also sales transactions.
The requirements: assumes that the OnHand Qty as of Today is 748 Pcs,
I want a way to know from which purchase transactions these qty came from, assuming that FIFO is the inventory method (First In First Out)
In Excel, I used Offset and some other formulas
The result should be like that:
And the clean version keeps only the lines with Qty OnHand like that:
Then, I will create Aging for these Qty as I need to know how long this item is idle in the warehouse.
I want to achieve the same with DAX, I am attaching the Excel file.
I wish if someone can help me with this data and not to refer to other forum posts, as the Aging pattern will not work correctly until we do the same in the screenshot.
I uploaded the Excel file here, I need the result using DAX in Power BI
link to the file: https://rb.gy/vwtgbd
@MahmoudElgendi , refer if this approch can help
https://radacad.com/dax-inventory-or-stock-valuation-using-fifo
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 18 | |
| 12 |