Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Cumulative Inventory Sum Measure

Hi all, I have looked high and low on this forum, and can't find a solution for this.  I'm looking to create a cumulative sum by quantity of inventory quantities (the 'Quantity' field shown below) wh...
  • v-lili6-msft's avatar
    v-lili6-msft
    5 years ago

    hi  Anonymous 

    You are missing ALL in your formula, just adjust it as below:

    Cumm Sum =
    CALCULATE (
        SUM ( Stock[Quantity] ),
        FILTER (
            ALL ( TableFiscalCalendar ),
            TableFiscalCalendar[GregorianDate] <= MAX ( TableFiscalCalendar[GregorianDate] )
        )
    )

     

    Regards,

    Lin