Forum Discussion

CP000's avatar
CP000
New Member
6 years ago
Solved

Running Total with multiple items

Dear Community,    I think I have a more complex Running Total challenge. I have my information arranged by Date, Type and Value. I need to create a monthly running total by date and type.   In ...
  • TomMartens's avatar
    6 years ago

    Hey CP000 ,

     

    i'm not sure what you mean by running total by date and type. If you select tpye either by slicer, axis label, or row/column header this DAX creates a cumulative value based on type, even if type is not mentioned inside the formula by itself:

     

    running total test = 
    CALCULATE(
        SUM('Fact Sale'[Quantity])
        , FILTER(
            ALL('Fact Sale'[Invoice Date Key])
            , 'Fact Sale'[Invoice Date Key] <= MAX('Fact Sale'[Invoice Date Key])
        )
    )

     

    Here is a little screen shot:

    If this does not provide what you are looking for, please give a more detailed explanation what makes the type column special.

     

    Regards,

    Tom