Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have following table and I need the repeated row with latest date. I need only those values which was signed latest
Name | User | Date Checked Out | ||
ABC | OOO | 2017-12-14T11:47:00 | ||
ABC | XXX | 2017-12-14T11:57:00 | ||
ABC | HHH | 2017-12-14T11:17:00 | ||
DEF | VAA | 2017-12-17T11:47:00 | ||
DEF | KAS | 2017-12-17T11:00:00 |
Here I need result like below:
ABC | XXX | 2017-12-14T11:57:00 | |
DEF | VAA | 2017-12-17T11:47:00 |
Can someone please help?
Solved! Go to Solution.
Try:
Latest date by name =
VAR _LatestDate = CALCULATE(MAX(Table[Date Checked out]), ALLEXCEPT (Table, Table[Name]))
RETURN
COUNTROWS (SUMMARIZE (FILTER(Table, Table[Date Checked out] = _LatestDate), Table[Name], Table[User, Table[Date Checked Out])
add the three fields to a table visual, add the [Latest date by name] measure to the filter pane and set the value to equals 1
Proud to be a Super User!
Paul on Linkedin.
Try:
Latest date by name =
VAR _LatestDate = CALCULATE(MAX(Table[Date Checked out]), ALLEXCEPT (Table, Table[Name]))
RETURN
COUNTROWS (SUMMARIZE (FILTER(Table, Table[Date Checked out] = _LatestDate), Table[Name], Table[User, Table[Date Checked Out])
add the three fields to a table visual, add the [Latest date by name] measure to the filter pane and set the value to equals 1
Proud to be a Super User!
Paul on Linkedin.
I am sure there are other ways to do this but you can add a column to your table that determines if the Date Checked Out is the lastest for that name
Proud to be a Super User! | |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
142 | |
133 | |
110 | |
68 | |
55 |