<?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: How does one combine rows in a table in the following fashion? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562850#M18607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve &lt;/A&gt;should do it.. or &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/analysis/summary-statistics.htm"&gt;Summary Statistics&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2019 21:22:54 GMT</pubDate>
    <dc:creator>MitchHolley1</dc:creator>
    <dc:date>2019-03-18T21:22:54Z</dc:date>
    <item>
      <title>How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562849#M18606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a tool in ArcToolbox that can do what is illustrated in the accompanying image?&amp;nbsp; I could have sworn there was.&lt;/P&gt;&lt;P&gt;Thanks, Royce&lt;/P&gt;&lt;DIV style="color: #000000; font-size: 16px; line-height: 16px; background-color: #f7f7f7; border: 1px solid #999999; border-radius: 1px; top: 1px; left: 1px;"&gt;&lt;DIV class="ir-ext-dimensions"&gt;&lt;SPAN class="ir-ext-rendered" title="Rendered image dimensions (after any scaling/resizing has been applied)"&gt; &lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt; &lt;/SPAN&gt; &lt;SPAN class="ir-ext-natural" title="Natural image dimensions (without applying any scaling/resizing)"&gt; (&lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="ir-ext-filesize"&gt;&lt;SPAN data-ir-ext-value=""&gt;&lt;/SPAN&gt; &lt;SPAN data-ir-ext-unit=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-size: 16px; line-height: 16px; background-color: #f7f7f7; border: 1px solid #999999; border-radius: 1px; top: 1px; left: 1px;"&gt;&lt;DIV class="ir-ext-dimensions"&gt;&lt;SPAN class="ir-ext-rendered" title="Rendered image dimensions (after any scaling/resizing has been applied)"&gt; &lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt; &lt;/SPAN&gt; &lt;SPAN class="ir-ext-natural" title="Natural image dimensions (without applying any scaling/resizing)"&gt; (&lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="ir-ext-filesize"&gt;&lt;SPAN data-ir-ext-value=""&gt;&lt;/SPAN&gt; &lt;SPAN data-ir-ext-unit=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562849#M18606</guid>
      <dc:creator>royceSimpson1</dc:creator>
      <dc:date>2019-03-18T21:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562850#M18607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve &lt;/A&gt;should do it.. or &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/analysis/summary-statistics.htm"&gt;Summary Statistics&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562850#M18607</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2019-03-18T21:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562851#M18608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked at both but not seeing how to get the comma delimited valued in the second column.&amp;nbsp; &lt;/P&gt;&lt;DIV style="color: #000000; font-size: 16px; line-height: 16px; background-color: #f7f7f7; border: 1px solid #999999; border-radius: 1px; top: 1px; left: 1px;"&gt;&lt;DIV class="ir-ext-dimensions"&gt;&lt;SPAN class="ir-ext-rendered" title="Rendered image dimensions (after any scaling/resizing has been applied)"&gt; &lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt; &lt;/SPAN&gt; &lt;SPAN class="ir-ext-natural" title="Natural image dimensions (without applying any scaling/resizing)"&gt; (&lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="ir-ext-filesize"&gt;&lt;SPAN data-ir-ext-value=""&gt;&lt;/SPAN&gt; &lt;SPAN data-ir-ext-unit=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562851#M18608</guid>
      <dc:creator>royceSimpson1</dc:creator>
      <dc:date>2019-03-18T21:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562852#M18609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a similar output with a...&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/pivot-table.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/pivot-table.htm"&gt;Pivot Table—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562852#M18609</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-18T21:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562853#M18610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure that will work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do create a road name index for a data driven pages map book.&amp;nbsp; So, I've got a map book with 300 pages and I'd like to create an index that has two fields... "road name" and "pages". Examples might be " Highway 14" "10,11,12,15,16,17" &lt;/P&gt;&lt;P&gt;"College Ave"&amp;nbsp; "25,29,100,200...etc.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took my road centerlines and dissolved based on name.&amp;nbsp; Then I did an intersect to break the roads at the page boundaries, then I did a spatial join to add the page fields onto the road centerlines.&amp;nbsp; So far so good.&amp;nbsp; But now, I have individual rows for each page that any given road shows up on.&amp;nbsp; I'd like to merge all those so that the road name only shows up in one record but the pages it's on are all together in a comma delimited string in the second column, pretty much just like that image I attached in my original post.&amp;nbsp; The crazy thing is, I did all this once before months ago and now I can't figure out what the tool was that did it.&lt;/P&gt;&lt;DIV style="color: #000000; font-size: 16px; line-height: 16px; background-color: #f7f7f7; border: 1px solid #999999; border-radius: 1px; top: 1px; left: 1px;"&gt;&lt;DIV class="ir-ext-dimensions"&gt;&lt;SPAN class="ir-ext-rendered" title="Rendered image dimensions (after any scaling/resizing has been applied)"&gt; &lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt; &lt;/SPAN&gt; &lt;SPAN class="ir-ext-natural" title="Natural image dimensions (without applying any scaling/resizing)"&gt; (&lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="ir-ext-filesize"&gt;&lt;SPAN data-ir-ext-value=""&gt;&lt;/SPAN&gt; &lt;SPAN data-ir-ext-unit=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 22:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562853#M18610</guid>
      <dc:creator>royceSimpson1</dc:creator>
      <dc:date>2019-03-18T22:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562854#M18611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given you are using&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;road centerlines and map sheets you could use a spatial join, and the merge rule for the attributes. This&lt;/SPAN&gt;&lt;SPAN style="background: white;"&gt;&amp;nbsp;function allows to list the attribute values from a particular field (of the feature class that you’re joining to the&amp;nbsp;target layer) and enter them into a designated field using a user-defined delimiter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white;"&gt;&amp;nbsp;&lt;IMG alt=" Spatial Join - Field Map Steps" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440254_FieldMapSteps.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-size: 10.5pt; margin: 0in;"&gt;&lt;SPAN style="background: white;"&gt;The resulting dataset should display pages that each of the roads intersect, stored as text values separated by the delimiter of your choice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: black; font-size: 9.5pt; margin: 0in;"&gt;There is no control on which order the fields are merged up. So you will possibly need to run a sort on the field containing the merged attributes. You could use something like this.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;sortValues&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;the_value&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; delimiter&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;','&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; the_value &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; the_value
 
  &lt;SPAN class="comment token"&gt;# Create a Python list by splitting the string on the delimeter&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
  the_list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; the_value&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;delimiter&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
  &lt;SPAN class="comment token"&gt;# Sort the list&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
  the_list&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sort&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
  &lt;SPAN class="comment token"&gt;# Reassemble the string from the sorted list&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
  rval &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; delimiter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;the_list &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; rval

 &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562854#M18611</guid>
      <dc:creator>MarkBryant</dc:creator>
      <dc:date>2021-12-12T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How does one combine rows in a table in the following fashion?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562855#M18612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo, that's it!&amp;nbsp; Thanks so much.&lt;/P&gt;&lt;DIV style="color: #000000; font-size: 16px; line-height: 16px; background-color: #f7f7f7; border: 1px solid #999999; border-radius: 1px; top: 1px; left: 1px;"&gt;&lt;DIV class="ir-ext-dimensions"&gt;&lt;SPAN class="ir-ext-rendered" title="Rendered image dimensions (after any scaling/resizing has been applied)"&gt; &lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt; &lt;/SPAN&gt; &lt;SPAN class="ir-ext-natural" title="Natural image dimensions (without applying any scaling/resizing)"&gt; (&lt;SPAN data-ir-ext-width=""&gt;&lt;/SPAN&gt;x&lt;SPAN data-ir-ext-height=""&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="ir-ext-filesize"&gt;&lt;SPAN data-ir-ext-value=""&gt;&lt;/SPAN&gt; &lt;SPAN data-ir-ext-unit=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 17:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-does-one-combine-rows-in-a-table-in-the/m-p/562855#M18612</guid>
      <dc:creator>royceSimpson1</dc:creator>
      <dc:date>2019-03-25T17:29:00Z</dc:date>
    </item>
  </channel>
</rss>

