Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello!
I have a dilemna. I have employee records where each time a change is made to their profile, a new record is generated.
With that, I need to filter for all to return only the most recently updated record for each. Below is a generic sample of what I am working with. I need to be able to filter out the older records from the report view. I've searched the forums and have not found something so specfic as this ask. Basic and advanced filtering do not have applicable options in this scenario. Longer term employees can have hundreds of records.
Employee | Unique Identifier | Record Last Modified | |
Smith, Joe | xchkihs | 1/25/2024 | 9:35:20 AM |
Smith, Joe | xchkihs | 5/1/2024 | 10:35:17 AM |
Steven, Sue | dkslsjs | 12/1/2023 | 5:55:26 PM |
Steven, Sue | dkslsjs | 6/1/2024 | 7:37:15 AM |
Solved! Go to Solution.
Simple enough,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thank you all! Each of these options are great!😍
Hi,
This M code works
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Employee", type text}, {"Unique Identifier", type text}, {"Record Last Modified", type datetime}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Employee"}, {{"Count", each Table.Max(_,"Record Last Modified")}}),
#"Expanded Count" = Table.ExpandRecordColumn(#"Grouped Rows", "Count", {"Unique Identifier", "Record Last Modified"}, {"Unique Identifier", "Record Last Modified"})
in
#"Expanded Count"
Hope this helps.
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
52 | |
41 | |
39 | |
37 |