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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
charlessutton
Frequent Visitor

Struggling with an inventory balance based on starting point, usage, and new purchases.

I am trying to find a daily inventory balance for raw materials so I can flag any work orders that may not have enough raw material to coplete the job.

I have 3 sets of data to start with. Table 1 has Stock Code and QOH (quantity on hand), Table 2 shows a job number and the required quantity for each stock code based on job date, and Table 3 shows purchase order, scheduled receipt date, and inbound quantity for each stock code. 

I am trying to find a running balance into the future to see when we may have a short fall. I am struggling using the QOH as the starting balance and then adding or reducing by day depending on the work order or inbound purchase. I have tried multiple things but I cannot seem to get a good starting point. Any guidance or new path is appreciated. 

Tabe 1

stockqoh
1000117739
10002591
100034710
100040
100050
100060
100071198
10008344
100090
100100

 

Table 2

JobStockCodeWipMaster.JobStartDateWipMaster.CompleteRMNeeded
217797000344120N0
217797000344120N2255.027
220066100344139N15.3
220066100544139N15.3
220066100244139N15.3
220066100144139N15.3
220065003044139N41496
219382002944145N59746.5
219384002744145N60918
219386000844145N60918
219381003644145N9957.926
219383009544145N60332.25
219383009644145N60332.25
219386205544145N9811.488

 

Table 3

PurchaseOrderStockCodeMOrderQtyLatestDueDate
9591500691800012/31/2020 0:00
9591500691800012/31/2020 0:00
9541500691800012/31/2020 0:00
9763200255000012/31/2020 0:00
9685200296000012/31/2020 0:00
9789SUBCON- 900742500012/31/2020 0:00
9302400183000012/30/2020 0:00
88282088191212/23/2020 0:00
88282128783012/23/2020 0:00
88285746354012/23/2020 0:00
8828108311112/23/2020 0:00
8828740016212/23/2020 0:00
8828348037212/23/2020 0:00
97569013126412/23/2020 0:00
93629013126412/23/2020 0:00
1 REPLY 1
V-pazhen-msft
Community Support
Community Support

@charlessutton 

I am afraid it is not possible to do so. The problem is you don't have related fields in the 3 tables. All three tables record unrelated content, so no relationships can be created. For example, there is no calendar table and date column in the Table 1 (with QHO column), you cannot set QHO as starting balance because you do not know which days it start from. 

 

Check this doc about relationships in PBI: https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.