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
vitalities
Frequent Visitor

Number of Days stock on hand

Hello everyone,

 

i have the following data set at SKU-location level: 1)period  2)stock quantities in cases 3) 8 columns of weekly forecast in CS (week 0 to week 7).

 

Based on that, i need to calculate days on hand / weeks on hand at each period at any selected level of product hierarchy (SKU or higher level) and any aggregation of storage locations

 

Please help me with the ideas on how it  can be delivered. Thanks a lot in advance

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@vitalities,

Please check if DAX in the attached PBIX file returns your expected result. 

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

@vitalities,

Please check if DAX in the attached PBIX file returns your expected result. 

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuezhe-msft
Employee
Employee

@vitalities,

Please follow the instructions in the thread below to provide sample data of your table here and post expected result.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Days on hand should be calculated based onstock and forecast , in case stock is more than 8 weeks of forecast, it should be considered as 57Days on hand should be calculated based onstock and forecast , in case stock is more than 8 weeks of forecast, it should be considered as 57

 

 

Here it is. Stock and forecast are in same units. I need a measure to calculate how many days of forecast will be covered with stock we have

Expected resultExpected result

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.