days of supply

illusionek

Board Regular
Joined
Jun 21, 2014
Messages
104
Hello

I am trying to modify Days of Supply function that was provided in the below thread but I struggle to get correct numbers and I cant figure out why.

Calculating days of supply using DAX...


I have provided below link to sample file with my attempt on this Dax, I would expect to see below results but as you can see on the file I am getting completely different numbers and have no idea why.

In a nutshell, Days of Supply should look at stock w/c 10th Apr and then compare it vs Demand from w/c 17th Apr onwards to determine no of days stock will last. Number I am getting on my excel file dont seem to match anything I would expect to see.

1682437920407.png



days of supply sample.xlsx
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top