Forum Discussion

MMJ369's avatar
MMJ369
Frequent Visitor
8 years ago
Solved

Running total within time periods

Hi,   I have to create a graph that shows the value of orders placed every day within a timewindow which need to be shipped within that same time window (between the cutoff dates of two consecutive...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    7 years ago

    Hi MMJ369,

     

    Is it this one? Please check out the demo in the attachment.

    PlacedOrdersThisMonth 3 =
    CALCULATE (
        IF (
            MIN ( 'Calendar'[Date] ) = MIN ( OB[CutOffDate] ),
            0,
            SUM ( OB[OrderValue] )
        ),
        USERELATIONSHIP ( OB[OrderDate], 'Calendar'[Date] ),
        FILTER ( OB, OB[ShipDate] <= OB[CutOffDate] )
    )
    

    Running_total_within_time_periods

     

    Best Regards,

    Dale