Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Limit running total by date

I have two datasets   Plans PlanId | StartDate | Article | Required 1         | 01.01.22 |     a      |      5 1         | 02.01.22 |     a      |      10 1         | 02.01.22 |     b     |    ...
  • v-yadongf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Please try following measure:

    DeliveredByStartDate = CALCULATE(MAX('Deliveries Table'[Running Toal]),FILTER('Deliveries Table','Deliveries Table'[DeliveryDate] <= MAX('Plan Table'[StartDate])))

     

    Thwe result you want:

     

    Best regards,

    Yadong Fang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.