How to merge features according to their majority content?

06-29-2022 12:39 PM
New Contributor

Hello everyone,

If you look at the attached attribute table, there are features whose "id" are all the same but some of their "lucode" are different. In the "lucode" field, "AC67" has the majority over "PG01" and "TC01". 

I want to know if there's a way or code or tool that enables me to merge the features with the same "id" into one feature which obviously will have the same "id" and the most repeated "lucode" which is "AC67"? 

Thank you all in advance!

0 Kudos
1 Reply
by Esri Regular Contributor
Esri Regular Contributor

Maybe Dissolve tool with specified Dissolve Fields: