Hello All,
@ShitijMehta @DanPatterson, @XanderBakker , @Robert_LeClair @Anonymous User
I have a polygon feature class of buildings in the city, one of the fields in it is ARCHTYPE and it’s a multivalue concatenated field as shown in the image. (NOTE: There are total of 25 Archetype in my data)
So, I want to count the occurrence of each archetype (values are separated by semi colon) in a row and create 25 new fields with the archetype names and update those new fields with the count number.
So, for example Structure_ID 1400232 (2ND HIGHLIGHTED ROW) I would have 2 new fields called Small Multiplex<2007 and Large Multiplex built < 2007 It should give me value of 4 for and 1 respectively.
The table below is something that i am trying to do counting the each value in Archetype Field and updating the preexisting fields with there respective numbers
| | ARCHETYPE | Small Multiplex built < 2007 | Large Multiplex built < 2007 | Archtyp3 | Archtyp4 | Archtyp5 | Archtyp6 | Archtyp7 | Archtyp8 | Archtyp9 | Archtyp10 |
| Record 1 | Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Large Multiplex built < 2007;Large Multiplex built < 2007;Large Multiplex built < 2007;Small Multiplex built < 2007;Small Multiplex built < 2007;Large Multiplex built < 2007 | 10 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
It would be a great help if someone help me find a way to do this within modelbuilder since this is one of the intermediately step in my main model so either a geoprocessing tool or a script would go a long way.
Thanks in advance and looking forward for a response.
Regards
Hussain