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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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,226,121
Messages
6,189,093
Members
453,524
Latest member
AshJames

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