Forum Discussion

temuulenchoi's avatar
temuulenchoi
Frequent Visitor
4 years ago
Solved

Cumulative total between date slicer

Hi there, I am trying to filter a list of cumulative Inventory with a date slicer. It works when I move the "until" side, but when I move the "from" side, it shows wrong numbers.  Example "Sale"...
  • amitchandak's avatar
    4 years ago

    temuulenchoi , You should use all as inventory need to build from start

     

    Cumulative Total Inventory=
    CALCULATE(
    SUM(Sale[InQty])-SUM(Sale[OutQty]),
    FILTER(ALL(DateTable[Date]),
    DateTable[Date] <= max(DateTable[Date]) && (DateTable[Date]) <= TODAY()))