Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jhey12345
Frequent Visitor

Please help building allocation tool in Power BI

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.

Jhey12345_1-1712161307567.png

 

Jhey12345_2-1712161341589.png

 

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.

 

 

1 ACCEPTED SOLUTION
3 REPLIES 3
amitchandak
Super User
Super User

@Jhey12345 , I think you should consider FIFO solution from RADACAD

 

https://radacad.com/dax-inventory-or-stock-valuation-using-fifo

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This did not work for me, but thank you for sharing this.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors