<?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 adding new values to a new field based off previous field in same layer (query) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716776#M23725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer, I am trying to merge multiple values (multi family, multi family &amp;lt;10) from field 1 into a newly created field 2 as the same value (MF). I have over 50,000 records of this so I was wondering if im in an edit session will the attribute query work for this? Haven't had much luck so far. or maybe another tool will execute this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 has multi family and multi family &amp;lt; 10 (along with 50 other value types)&lt;/P&gt;&lt;P&gt;field is currently all NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want so select the values from field 1 that are &amp;nbsp;multi family and multi family &amp;lt;10 and create a new value in field 2 as 'MF'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 20:51:55 GMT</pubDate>
    <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
    <dc:date>2016-10-27T20:51:55Z</dc:date>
    <item>
      <title>adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716776#M23725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer, I am trying to merge multiple values (multi family, multi family &amp;lt;10) from field 1 into a newly created field 2 as the same value (MF). I have over 50,000 records of this so I was wondering if im in an edit session will the attribute query work for this? Haven't had much luck so far. or maybe another tool will execute this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 has multi family and multi family &amp;lt; 10 (along with 50 other value types)&lt;/P&gt;&lt;P&gt;field is currently all NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want so select the values from field 1 that are &amp;nbsp;multi family and multi family &amp;lt;10 and create a new value in field 2 as 'MF'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 20:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716776#M23725</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2016-10-27T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716777#M23726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't quite get what you're trying to do. Can you give a simple example showing exactly what you want the result to be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you're trying to do is:&lt;/P&gt;&lt;P&gt;1.) Select the rows where field1 = 'multi-family' AND multifamily &amp;lt; 10:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/selecting-records-in-a-table-by-attributes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/selecting-records-in-a-table-by-attributes.htm"&gt;Selecting records in a table by attributes—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) Calculate "MF" into field2:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm"&gt;Fundamentals of field calculations—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 20:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716777#M23726</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-10-27T20:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716778#M23727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my table consists of multiple fields, lets say field 1 is labeled "purpose" and has 20 unique values. Of those 20 unique values two are "multi family," and "multi family &amp;lt;10".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I created a new field named "XXX" I want to calculate this new field with a new values ).&lt;/P&gt;&lt;P&gt;So where field 1 = multi family i want field two to = mf. where field 1 value = multi family &amp;lt;10' i want field two to = mf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if field&amp;nbsp;1 == 'multi family' then write new value for field two as 'mf'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an expression (was using python but if you can help with vb.script that would work as well) in the field calculator tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this better explains my situation.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716778#M23727</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2016-10-28T13:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716779#M23728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the easiest way to do this is to first select the values that you want to change to 'mf'. The SQL to select these rows would be:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;field1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'multi family'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;OR&lt;/SPAN&gt; field1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'multi familty &amp;lt;10'&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 you could use:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;field1 &lt;SPAN class="operator token"&gt;IN&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'multi family'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'multi family &amp;lt;10'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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;Then, run field calculator to make field2 for those rows equal "mf" - field calculator only operates on selected records if there is a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also run a custom function in the field calculator that evaluates whether field1 = 'multi family' or 'multi family &amp;lt;10', but it's a little more complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 20:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716779#M23728</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-10-28T20:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716780#M23729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open the field calculator on &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;field2&lt;/SPAN&gt; and paste the following in the field calculator expression block (replace &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;field1&lt;/SPAN&gt; with the actual field name):&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'MF'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; !field1! &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'multi family'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'multi family &amp;lt; 10'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; None&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 21:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716780#M23729</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-10-28T21:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716781#M23730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet thank you for the answer, this method works perfectly for my needs.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 13:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716781#M23730</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2016-10-31T13:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: adding new values to a new field based off previous field in same layer (query)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716782#M23731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this was the method I actually used for my needs for this specific request! Definitely saved me a lot of time!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 14:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-new-values-to-a-new-field-based-off/m-p/716782#M23731</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2016-10-31T14:15:28Z</dc:date>
    </item>
  </channel>
</rss>

