Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to get Latest date data.

we have 3 visuals (in , out and Existing). we want to show the latest date data.

 

Ex:  we have the below data, so in powr bi Table visula there sould be method A should be available and in "In" table, "Out" table should be blank and in in existing method A will be visible.

 

DetailsMethodPaymentDate
inA1003/10/2022
OutZ10003/8/2022
inD102/8/2022
OutH502/24/2022

 

If the latest date is 10th March, then data should be available for the 10. either it could be In or Out or for both. instead of showing all date record.

 

  • Anonymous , You need to use a measure like below in table or use that visual level filter

     

    measure =

    var _max = maxx(allselected(Table), Table[Date]) //or use// maxx(all(Table), Table[Date]) 

    return

    calculate(sum(Table[Payment]), filter(Table, Table[Date] =_max))

1 Reply

  • Anonymous , You need to use a measure like below in table or use that visual level filter

     

    measure =

    var _max = maxx(allselected(Table), Table[Date]) //or use// maxx(all(Table), Table[Date]) 

    return

    calculate(sum(Table[Payment]), filter(Table, Table[Date] =_max))