<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compare address fields in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236215#M62832</link>
    <description>&lt;P&gt;1. Where does the "Expression" go?&lt;/P&gt;&lt;P&gt;2. The table has a bunch of fields (I just included 2 for the illustration). Do i use the column# of the "visible" fields or of "all" fields?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 22:50:20 GMT</pubDate>
    <dc:creator>GreggWolin</dc:creator>
    <dc:date>2022-11-29T22:50:20Z</dc:date>
    <item>
      <title>Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236147#M62823</link>
      <description>&lt;P class=""&gt;I have a dataset of properties where the site address (Address, City, State, Zip) is contained within 1 field, while the postal address is broken into individual Address, City, State and Zip fields.&lt;/P&gt;&lt;P class=""&gt;I need to identify the records where the addresses match.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236147#M62823</guid>
      <dc:creator>GreggWolin</dc:creator>
      <dc:date>2022-11-29T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236173#M62826</link>
      <description>&lt;P&gt;could you show a record or two.&lt;/P&gt;&lt;P&gt;You could make it easier if you produced a similar field with the concatenation done in the field calculator.&amp;nbsp; You could compare those fields easily.&amp;nbsp; Assuming python and your fields are names as you suggest, and commas separate the values in the comparison field,&lt;/P&gt;&lt;LI-CODE lang="python"&gt;r"{}, {}, {} {}".format(!Address!, !City!, !State!, !Zip!)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236173#M62826</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-29T21:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236181#M62828</link>
      <description>&lt;P&gt;Here you go. The "Match" column is what I'd like to create. Basically, if the first 5 characters match then 1, else 0&lt;/P&gt;&lt;TABLE width="801px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;STRONG&gt;SiteAddress&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;STRONG&gt;PostalAddress&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;STRONG&gt;Match&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37211 W OLIVETO AVE MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;MAIL RETURN&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37269 W OLIVETO AVE MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;PO BOX 2316&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37289 W OLIVETO AVE MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37289 W OLIVETO AVE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;36990 W NOLA WAY MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;15771 RED HILL AVE STE 100&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37120 W OLIVETO AVE MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;37120 W OLIVETO AVE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;36850 W NOLA WAY MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;PO BOX 519&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="349px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;36866 W NOLA WAY MARICOPA, AZ 85138&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;36866 W NOLA WAY&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="226px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236181#M62828</guid>
      <dc:creator>GreggWolin</dc:creator>
      <dc:date>2022-11-29T21:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236185#M62830</link>
      <description>&lt;P&gt;Code block, python parser.&lt;/P&gt;&lt;P&gt;Expression :&amp;nbsp; match(!SiteAddress!, !PostalAddress!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def match(fld0, fld1, chars=5):
    """match first `chars` in two fields"""
    if fld0[:chars] == fld1[:chars]:
        return 1
    return 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236185#M62830</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-29T21:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236215#M62832</link>
      <description>&lt;P&gt;1. Where does the "Expression" go?&lt;/P&gt;&lt;P&gt;2. The table has a bunch of fields (I just included 2 for the illustration). Do i use the column# of the "visible" fields or of "all" fields?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 22:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236215#M62832</guid>
      <dc:creator>GreggWolin</dc:creator>
      <dc:date>2022-11-29T22:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare address fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236238#M62838</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm" target="_blank" rel="noopener"&gt;Calculate Field Python examples—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fieldcalc.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57189iDD583D76497EE6AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fieldcalc.png" alt="fieldcalc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Well the code won't work, It would get real ugly fast if you want to slice and compare multiple values from multiple slices in multiple fields to slices from one input field&lt;/P&gt;&lt;P&gt;As I said earlier, it would be easier if you added a new field and concatenated the values from the fields you want to replicate the full address.&amp;nbsp; Then, you can compare the two fields directly&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 00:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/compare-address-fields/m-p/1236238#M62838</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-30T00:20:26Z</dc:date>
    </item>
  </channel>
</rss>

