Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

edit query filter rows based on a condition

I have a requirement to filter the rows in edit query, remove certain records based on a condition. A typical student marks date example, if a student takeup the test second time, query editor should pickup marks in the latest test only.

 

edit query.jpg

 

Help appreciated. Thanks

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

this comes from Power Query Editor

wdx223_Daniel_0-1613005968198.png

this comes from Power Pivot or PBI

wdx223_Daniel_1-1613006418716.png

 

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

this comes from Power Query Editor

wdx223_Daniel_0-1613005968198.png

this comes from Power Pivot or PBI

wdx223_Daniel_1-1613006418716.png

 

Anonymous
Not applicable

Thanks for quick response wdx225_Daniel. This looks good. But somehow, I cannot apply to my case, which is much more complicated. So, I ended up grouping the table, taking max of every other fields (not sure if its the best solution, but it worked for now). Sorry, you gave the right answer for my question, however, I cannot use in my real work. Thanks again

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.