<?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: Create additional rows based on a comma separated field? in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717122#M1660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tough one, but if your intent is to get summaries and the like, you might want to consider that queries can parse substrings from a string.&amp;nbsp; Consider your Counties field, if you wanted to get all the records that are associated with Bay county, your query would be&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Counties Like &lt;SPAN class="string token"&gt;'%Bay%'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or variants such as&lt;/P&gt;&lt;P&gt;Counties = 'Bay' (explicit check)&lt;/P&gt;&lt;P&gt;(Counties = 'Bay') Or (Counties Like '%Bay,') &amp;nbsp;&amp;nbsp; (as above, but check for an immediately following comma)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting up queries to run through a Summarize might be easier that trying to reinvent/reformat a database structure which is being a bit stretched beyond its original purpose/vision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2017 17:04:47 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-09-21T17:04:47Z</dc:date>
    <item>
      <title>Create additional rows based on a comma separated field?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717121#M1659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of proposals which includes a field for counties&amp;nbsp;that the proposal will affect. Unfortunately, the COUNTY field has multiple counties in it, separated by a comma. (Pic&amp;nbsp;is from an excel attempt).&lt;IMG alt="Excel version" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372190_comma_to_rows.png" style="width: 620px; height: 168px;" /&gt;&lt;/P&gt;&lt;P&gt;What I want to do is find a way to create a duplicate rows so that each only has one county in the county field. (The end result is that I need to have a map of counties that will be symbolized by the number of proposals affecting them.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the highlighted Proposal 4 above would turn into something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372193_dup_rows.png" style="width: 620px; height: 128px;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I can join to a county shapefile and easily get a count. It's simple enough in Excel to split a cell into columns and then transpose them into rows, however I need to pull the additional data from the other fields as well. There are 1500 rows, so I need an automated way to do this either in ArcMap or through Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps I'm going about this all wrong and there is a way to relate the table to a county shapefile based on a comma separated field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717121#M1659</guid>
      <dc:creator>AaronKoelker</dc:creator>
      <dc:date>2017-09-21T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create additional rows based on a comma separated field?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717122#M1660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tough one, but if your intent is to get summaries and the like, you might want to consider that queries can parse substrings from a string.&amp;nbsp; Consider your Counties field, if you wanted to get all the records that are associated with Bay county, your query would be&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Counties Like &lt;SPAN class="string token"&gt;'%Bay%'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or variants such as&lt;/P&gt;&lt;P&gt;Counties = 'Bay' (explicit check)&lt;/P&gt;&lt;P&gt;(Counties = 'Bay') Or (Counties Like '%Bay,') &amp;nbsp;&amp;nbsp; (as above, but check for an immediately following comma)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting up queries to run through a Summarize might be easier that trying to reinvent/reformat a database structure which is being a bit stretched beyond its original purpose/vision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717122#M1660</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-21T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create additional rows based on a comma separated field?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717123#M1661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought a very similar question was recently answered on GeoNet, but I can't find it at the moment.&amp;nbsp; In the meantime, a similar question has been answered on StackExchange:&amp;nbsp; &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/83210/splitting-strings-into-new-rows-retaining-geometry" title="https://gis.stackexchange.com/questions/83210/splitting-strings-into-new-rows-retaining-geometry"&gt;arcgis desktop - Splitting strings into new rows, retaining geometry - Geographic Information Systems Stack Exchange&lt;/A&gt; .&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post back if I find the GeoNet question I am thinking about, or if I come up with my own solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 20:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717123#M1661</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-09-21T20:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create additional rows based on a comma separated field?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717124#M1662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks about what I'm trying to do. When I get a chance to try it out, I will post an update here. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-additional-rows-based-on-a-comma-separated/m-p/717124#M1662</guid>
      <dc:creator>AaronKoelker</dc:creator>
      <dc:date>2017-09-28T21:04:03Z</dc:date>
    </item>
  </channel>
</rss>

