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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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