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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.