select last date without duplicates

Hallo everybody!

If got a column "Name" an a column "DateTraining"

 

Name101.01.2022
Name202.02.2022.
Name103.03.2022
Name204.04.2022
Name310.10.2021

The Return has to look like this: (show the LatestDate of DateTraining)

Name103.03.2022
Name204.04.2022
Name310.10.2022

How can i do this?

0 6 145
6 REPLIES 6

Check out this video.

https://youtu.be/XP-gqeB9pFo 

Thanks for the very good Video, but

index(
orderby(
[Name],
[DateTraining], true
),
1
)

return a Error "ORDERBY has invalid inputs"

I think you need to include the table that the Name column is in.

index(
orderby(
Table_name[Name],
[DateTraining], true
),
1
)

I have now found the reason for the error.
orderby expects a KeyValue as the first argument.
But I can't set "Name" as a KeyValue. For me, this is the "Timestamp" column.
Any idea how I can solve this?

 

Hi. I think you can use the Sort() expression SORT() 

 

 

 

 

And wrap it in Unique. Unique(Sort())

Top Labels in this Space