Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.