Forum Discussion

SClarke501's avatar
SClarke501
Frequent Visitor
3 years ago
Solved

Set value on last date for all rows

I have a set of data that looks similar to this:   Date Type Cumulative Target Delivered 10/04/2021 Pipe 30 30 11/04/2021 Pipe 33 32 12/04/2021 Pipe 42 41   I'm try...
  • amitchandak's avatar
    3 years ago

    SClarke501 ,

     

    Max Target will be

    =

    var _max = maxx(allselected(Table), Table[Date])

    return

    calculate(Max(Table[Cumulative Target]), Filter(allselected(Table) , Table[Date] = _max))