Find Duplicates in the List

Hello. I have a probem. I have a lot of supports in the model and some of them have same value in the Parameter “ID”. I want to highlight all duplicates on the view but I don`t know how to sort them correctly.

Thanks

So you want to do one thing with the first instance of each value and something else with all the duplicate instances? You can use GroupByKey to group all instances of the same value. Then you can use List.Destruct to separate the first instance from the rest.

1 Like

Thank you for a quick response. Will try to.