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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all
I need a bit of help please with a bit of a conumdrum.
I have two tables, one with Students details, such as StudentID, Name, Postcode, Leaving date and the other with Attendance marks for each student. The two tables are joined with a relationship of 1-many (1 record in the Student details table has many records in the Attendance Marks table) using the Student ID.
Some Students in the Students details table have Leaving dates. I need to remove these students from the Attendance Marks table but keep them in the Student Details table.
I have been trying to figure out what is the best way to do this but cannot seem to get to a suitable answer. Can I write a DAX expression to remove the rows from the Attendance Marks table where a Students Leaving date is not NULL or can I create a new table filtered from the Attendance Marks table again where the Students Leaving date is not NULL. Or is there a much better and easier way to do this? I would be really grateful for advice on the best way to achieve this please?
Below are screen shots of the two tables (please note all details within them are completely ficticious)
Student Details
Attendance Marks
Solved! Go to Solution.
@Simon_Evans Few ways to achieve this, in PQ, merge student details with the attendance table, get the leaving date from the student table, and then filter where leaving date is blank, it will remove rows from the attendance table.
Or, you can use DAX, get the leaving date from the student table, and filter your page or your measure where leaving date is blank.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Simon_Evans Few ways to achieve this, in PQ, merge student details with the attendance table, get the leaving date from the student table, and then filter where leaving date is blank, it will remove rows from the attendance table.
Or, you can use DAX, get the leaving date from the student table, and filter your page or your measure where leaving date is blank.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k Thank you. I was missing the rather obvious step of merging in just the one column.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!