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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Calculating inventory over time, based on future requirements

Hey folks, been struggling with this one for a while, but can't conceptually figure out the best way to do it.

 

I have three tables:

  • Current list of part #s and current on-hand inventory
  • dmillerw_0-1666123822246.png

     

  • List of the next 52 weeks, with columns containing a count of each specific type of site opening that week
  • dmillerw_1-1666123838376.png

     

  • List of part #s, and what site requires what type of part, and the quantity
  • dmillerw_2-1666123848242.png

     

My end goal here is a table going week by week, broken out by each part #, that has the current inventory level for that week.

dmillerw_3-1666123860753.png

 

I don't expect someone to give me the answer, as I'll keep trying to figure this out. But I'm thinking conceptually I'm going about this wrong. I can roughly figure it out using SQL (which I'm more comfortable with), and I'm not sure if I should be trying that same concept here, or going about it a different way.

 

Any and all insight is greatly appreciated.

2 REPLIES 2
Anonymous
Not applicable

So I did end up figuring this out, but I have no clue if it's "effecient" or not (I assume not)

 

Essentially I crossjoined the inventory and schedule tables, then added some calculated columns to determine total consumption per week,  and calculate a running sum.

Anonymous
Not applicable

Hi @Anonymous,

I'm glad to hear you found the workaround. Did you mind sharing the resolution here? I think they may help other community users who faced a similar scenario.

BTW, you can also take a look at the following link start date, end date parts to know more about analysis based on multiple date fields:

Before You Post, Read This 
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors