Forum Discussion

bisted's avatar
bisted
Frequent Visitor
2 years ago
Solved

How to make a cumulative total for a second date column

I have a data set that has two date columns, a delivery date and a sale date. As delivery date is the column we refer to most often it is the one with an active relationship to my date table, and I h...
  • bhanu_gautam's avatar
    2 years ago

    bisted , Try using below measure 

     

    Cumulative Sales Items =
    CALCULATE(
    [Filtered Items],
    FILTER(
    ALL(Sales),
    Sales[Date Confirmed] <= MAX(Sales[Date Confirmed])
    ),
    USERELATIONSHIP('Date Table'[Date], Sales[Date Confirmed])
    )