Calculating Inventory Coverage →Take long time ...

rk_mudo

New Member
Joined
Jul 20, 2022
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Dear All,

I am indeed need your help...

I am currently trying to develop excel base calculation to find when will the date of stockout for my current inventory compared to demand/consumption.
I am using Excel 365, 2019.
I have 2 lookup tables:
① RepeatOrder_List → Total record > 1000 items
② Date
1 Fact table: All Consumptions/Demand
1 disconnected table _ShortageEstimate → store of Dax Measure

Those table are linked as below:
Relationship Table.PNG


Basic Measures:
[Consumptions] := SUM( All_ConsumptionNew[DAILY WEIGHT])
[Purchaser Stock] := SUM(All_ConsumptionNew[CC Stock])

And my dax formula for calculating date of stockout ( __PurchaserCovrag ) as below:
DateofStockOut.PNG


The formula is working and I get the result as I wanted as below:
pvResult.PNG


The problem is: It takes more than 3 minute of calculation (reading data displayed in Excel status bar) to get the result.
and often make excel become not responding.

Does anyone can help me here, for reviewing my dax formula or suggest for more effective dax formula.

Thank you
Best regards
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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