<?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 can turn attributes into fields? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167335#M54384</link>
    <description>&lt;P&gt;I like it.&amp;nbsp; Live and learn. I didn't know data management had a pivot table tool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 15:32:13 GMT</pubDate>
    <dc:creator>KimberlyGarbade</dc:creator>
    <dc:date>2022-04-24T15:32:13Z</dc:date>
    <item>
      <title>How can turn attributes into fields?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167102#M54353</link>
      <description>&lt;P&gt;I am trying to re-arrange my standalone table so I can calculate a new field. I want to calculate the difference between the 2020 count and the 2007 for each state. To do this,&amp;nbsp;&lt;SPAN&gt;I would like to create a 'State' field, a '2007 count' field, and a '2020 count' field. I am not sure what the best way to do this is. I don't want the states to repeat like they do in my current table. I would like each state to have a 2007 count and a 2020 count, instead of having two of the same states (one with a 2007 count and one with a 2020 count).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JacobDragovich_0-1650645109391.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39646i09D4D1655CA2BD17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JacobDragovich_0-1650645109391.png" alt="JacobDragovich_0-1650645109391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 16:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167102#M54353</guid>
      <dc:creator>JacobDragovich</dc:creator>
      <dc:date>2022-04-22T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can turn attributes into fields?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167177#M54360</link>
      <description>&lt;P&gt;I created a Feature Class in a SQL Server enterprise GDB that has this table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1650654537564.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39662i6542CC5931BE95B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1650654537564.png" alt="KimGarbade_0-1650654537564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SQL Select statement below will creates a table in my database called BogusStatesFormat that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1650654619520.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39663iA0B76BDC86A862CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1650654619520.png" alt="KimGarbade_1-1650654619520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;Select State, [2007], [2020],([2007]-[2020]) as YearDiff
Into BogusStateFormat
 from
 (
   Select State, MyCount, Year
   FROM [TESTSTATES]
  ) src
  pivot
  (
    Sum(MyCount)
	for Year in ([2007],[2020])
  ) piv;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't need the final data to be a feature class your done.&amp;nbsp; If you want to create a new feature class containing this data, you could use the Delete Identical tool on A COPY OF YOUR STATES FEATURE CLASS (Delete Identical modifies the input data you enter into the tool) to get just one state polygon for each state.&amp;nbsp; Then you could use the state name to join the resulting new state feature class to the new table in SQL server containing your year counts and difference.&amp;nbsp; Then you could export that joined feature class to a new feature class.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 15:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167177#M54360</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-04-24T15:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can turn attributes into fields?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167205#M54364</link>
      <description>&lt;P&gt;Select the 2007 records and export the selection as a new table. Delete the 2007 records from the original table. Change the column names in the two tables. Join the new table to the original table on the &lt;STRONG&gt;extent&lt;/STRONG&gt; column. If you wish save as a new table.&lt;/P&gt;&lt;P&gt;— Andy&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 14:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167205#M54364</guid>
      <dc:creator>AndyAnderson</dc:creator>
      <dc:date>2022-04-24T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can turn attributes into fields?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167322#M54383</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/pivot-table.htm" target="_blank"&gt;Pivot Table (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Input field - extent&lt;/P&gt;&lt;P&gt;Pivot Field - temporal period&lt;/P&gt;&lt;P&gt;Value Field - count&lt;/P&gt;&lt;P&gt;Using this new table, you can then just add afield and do a field calculation on it such as (year 2007/ year 2020) *100 etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 12:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167322#M54383</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-04-24T12:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can turn attributes into fields?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167335#M54384</link>
      <description>&lt;P&gt;I like it.&amp;nbsp; Live and learn. I didn't know data management had a pivot table tool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 15:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-turn-attributes-into-fields/m-p/1167335#M54384</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-04-24T15:32:13Z</dc:date>
    </item>
  </channel>
</rss>

