Forum Discussion

jt1999's avatar
jt1999
Frequent Visitor
4 years ago
Solved

Time Evolution of Inventory Using DAX

  I am attempting to create a running evolution of inventory based on demand. The problem is essentially this: I need to create a running log of inventory based on consumption of product as time...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi jt1999 

    Please try this measure .

    Measure = CALCULATE(SUM('Table'[Current Inventory(current month)])- SUM('Table'[Demand]), FILTER(ALL('Table'),[Part Number]=MAX('Table'[Part Number]) && [Date]<=MAX('Table'[Date])))

    The result is as shown below .

    I have attached my pbix file , you can refer to it .

     

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