Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.