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
SJ
Helper I
Helper I

Consuming forecast

Guys,

 

Help I am struggling!

I am trying to create a calculation to show how big a risk we are facing from stock going out of date.

 

I have 2 datasets 1 contains our forecast:

forecast.png

 

Secondly I have the batch data to show our current stock holding and sell by date.

Batch data.png

The data in this example assumes that today is the 06-Auguset.

 

I need to see how much each line will consume of the forecast and thus how much is left at risk.

For illustration purposes I have created this:

Illustration.png

 

Can any of you think of a way either in M query or Dax that can calculate the level of risk we are facing by batch.

I am showing just 1 material code above but we have many.

 

I can send over a spreadsheet with the above if need be.

 

Your help is much appreciated!

 

 

 

 

 

 

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi SJ,

 

You should merge Table1 of dataset1 and Table2 of dataset2 based on the material column and then create a calculate column of measure to implement your forecast logic. In addtion, could you clarify more details about the logic of your risk forecast? Could you share some formula you are using currently for further analysis?

 

Regards,

Jimmy Tao

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.