Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
29 | |
27 | |
16 | |
13 | |
10 |
User | Count |
---|---|
28 | |
24 | |
21 | |
16 | |
12 |