Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
There are 4 column in Power Query: [Position ID],[Modified Date],[Date],[FTE Count], the data type of [Modified Date] is Date/Time . Data Type of [Date] is Date.
I want to add a new column in power query after step "Filtered Row2".
The condition is: for each [Position ID] (I just filter one ID as example), for each day, get the value of [FTE Count] at the latest time of that day's [Modified Date]. Result like this:
I want to insert step after, to group by, how should I write the code?
I greatly appreciate your help!!!
Branko
Solved! Go to Solution.
=Table.FromRecords(Table.Group(#"Filtered Row2",{"Position ID","Date"},{"n",each Table.Sort(_,{"Modified Date",1}){0}})[n])
=Table.FromRecords(Table.Group(#"Filtered Row2",{"Position ID","Date"},{"n",each Table.Sort(_,{"Modified Date",1}){0}})[n])