Forum Discussion
DAX for FIFO quantities
- 4 years ago
Hi egle_p
Somewhere in my head, looking at the data you provided, I thought you were going for LIFO, despite you clearly saying FIFO. My apologies... 😕This is what you were after...
Hi egle_p
You're going to need to provide some sample data and the DAX of what you've got so far...
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M607150
- littlemojopuppy4 years agoCommunity Champion
egle_p I've had a monster bad week at work. I apologize for not looking at this...will try to do so tomorrow 🙂
- egle_p4 years agoFrequent Visitor
littlemojopuppy Thank you for remembering 🙂
I've figured most of it out - got too stuck on the filtered tables before. But one issue remains - rows with same arrival date need to be ordered by some other column as well (can't group them in the real data). Best would be to start from smallest quantity. I've given it a try and will continue to search in the original shared file.
- littlemojopuppy4 years agoCommunity Champion
Hi egle_p
Sorry for the delay with this...I had a monster bad week at work. 😞
I took your table and refactored it into a data model based around inventory transactions. Here is a solution that doesn't involve calculated columns. Overall, I think it's much simpler than what you had.
Hope this helps!