Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have two tables, Table A (Purchase Details) and Table B (Order Details). I want to allocate the supply qty from Table A to my Table B like in the yellow cells.
if Demand qty is less than or equal to Supply qty, capture the supply, PO No. and Delivery details, with the earliest delivery date. Since demand qty is less than supply there are still enough supply in PO no. - AA1 that can be allocated to the next Sales Order 2075, and so on and so forth hence, same PO details were populated. On Sales Order 2076, same PO details but delivery date is changed because there will be split shipments coming from supplier from the same PO.
I want the results in Yellow to be populated in Power BI, however, this is too complex and I'm really not able to create a solution. Hope anyone here can give me guidance on how to build this in Power BI. Thank you very much.
Solved! Go to Solution.
This is now solved using the solution I found:
Thank you: https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/194507
This is now solved using the solution I found:
Thank you: https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/194507
@Jhey12345 , I think you should consider FIFO solution from RADACAD
https://radacad.com/dax-inventory-or-stock-valuation-using-fifo
This did not work for me, but thank you for sharing this.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |