Power Query Challenge - Find Latest Value and filter out the rest

Nothnless

Board Regular
Joined
Apr 28, 2016
Messages
142
Hi, I'm Using Get&Transform in Excel which is equivalent to Power Query in Power BI. It even uses the same M language.

Is there a way to use the query to get a result that displays the following?

If there are duplicate errors then keep the latest error of those duplicates and filter out the rest.

Original table:
TimeNameError
1:00JohnY
2:00JohnY
3:00SmithN
4:00DaveY
3:00JohnY

Result:
TimeNameError
3:00SmithN
4:00DaveY
3:00JohnY

In this case the duplicate John's with errors were removed except for the John at 3:00

Thank you,
 
it depends on the data structure
but probably(!) yes

you have two solutions so choose :cool:

I think Conditional Column is a good way
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
A pleasure to have helped. It occurred to me this morning I might be tempted to add a final step of highlighting relevant columns in Powerquery Editor and deleting duplicates. Just a thought.
 
Upvote 0

Forum statistics

Threads
1,223,810
Messages
6,174,763
Members
452,582
Latest member
ruby9c

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top