Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a table in power query and it has multiple students (unique Identifiers) and multiple colu,ns. I need to write a function that will return the qualification earned during each semester based on the earliest date earned during that semester. Each student has earned the same qualification multiple times in the same semester. I am wanting the table to show the qualification earned only once and based on the earliest date it was earned during that semester. Is this possible?
Solved! Go to Solution.
Hi @bkanderso ,
I made a sample data and below is my solution for you reference.
Data:
1.Select the Student column and group by.
2.If you also want to get rows before other columns, expand the All Rows.
3.Add a custom column for filtering.
4.Filter to keep the rows with 1.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, this helps.
Hi, @bkanderso add "semester" into grouping (along with "student") if needed
groups = Table.Group(Source, {"Student"}, {{"all", each Table.Min(_, "Date")}}),
z = Table.FromRecords(groups[all])
Hi @bkanderso ,
I made a sample data and below is my solution for you reference.
Data:
1.Select the Student column and group by.
2.If you also want to get rows before other columns, expand the All Rows.
3.Add a custom column for filtering.
4.Filter to keep the rows with 1.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.