Forum Discussion

AndySmith's avatar
AndySmith
Icon for Helper III rankHelper III
2 years ago
Solved

Microsoft Business Central - Inventory value over time

Hi

Just wondering if anyone has had any expereince with reporting on inventory value over time?

 

I have the following measure:

Inventory_Value = SUMX('Item', [Item Ledger Entry Quantity]*[UnitCost]) 
which will return the current value, however in this specific instance I want to report on total inventory value over the course of the past 3 months. 
 
What is the best way to go about this?
  • Hi,

    Create a Clendar Table with calculated column formulas for Year, Month name and Month number.  Sort the Month name column by the Month number.  Ceate a relationship (Many to One and Single) from the Date column of the Item table to the Date column of the Calendar Table.  To a slicer, drag Year and Month name and make a selection.  This measure pattern should work

    Measure = calculate([Inventory_value],datesbetween(calendar[Date],edate(min(calendar[date]),-35),max(calendar[date])))

    Hope this helps.

     

2 Replies

  • Hi,

    Create a Clendar Table with calculated column formulas for Year, Month name and Month number.  Sort the Month name column by the Month number.  Ceate a relationship (Many to One and Single) from the Date column of the Item table to the Date column of the Calendar Table.  To a slicer, drag Year and Month name and make a selection.  This measure pattern should work

    Measure = calculate([Inventory_value],datesbetween(calendar[Date],edate(min(calendar[date]),-35),max(calendar[date])))

    Hope this helps.