cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
matteomatilde
Frequent Visitor

How to calculate stock rotation index through movements?

Hi, I'm new to the forum and I'm Italian so sorry for the bad English.

However, I want to calculate the stock rotation index for the items of my warehouse.

 

The available tables are:

 

  • FACT_STOCK: the current stock for the items in each warehouse is periodically measured and registered here
STK_IDSTK_ITM_IDSTK_WHS_IDSTK_QTYSTK_DATE
1I0001WH1401 Jan 18
2I0001WH1402 March 18
3I0001WH1375 June 18
4I0002WH2302 March 18

The table does not contain the stock quantity of each item. Some of them are missing.

 

  • FACT_MOV: contains all the movements (sales, transfers, returns) and the correspondent quantity and date
STK_IDMOV_CAUMOV_ITM_IDMOV_WHS_IDMOV_QTYMOV_DATE
A1SaleI0001WH11212 Dec 17
A2SaleI0001WH12420 Dec 17
A3SaleI0001WH1310 April 18
A4ReturnI0001WH1108 Jul 18

 

The update of the stock is not immediate: for example, on 2nd March 2018 the stock level of I0001 was of 40 pieces; in the next month (10th April 2018) 3 pieces were sold and in the next month (5th June 2018) the stock level was updated.

 

  • MASTER_ITEM: each item belongs to a group of product and each group belongs to a specific category 

ITM_ID

ITM_GROUPITM_CATEGORY
I0001WineBlue
I0002MilkBlue
I0003BeerRed

 

How can I calculate the stock rotation index as total quantity sold divided by average stock? 

2 REPLIES 2
lbendlin
Super User
Super User

total quantity sold by what? by month?

Yes, by month 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors