<?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: Defining coded value domains in ArcGIS Insights Questions</title>
    <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321279#M1423</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/555316"&gt;@Ian_Muehlenhaus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That worked! Thank you. I knew there had to be a way, thank you so much for your helpful response. I also installed ArcGIS Insights for Desktop - I didn't know it existed...ha! In case anyone is looking for something similar, here is the formula I used to calculate my asset ownership field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IF(OWNEDBY=-1,"Private",IF(OWNEDBY=-2,"Other",IF(OWNEDBY=1,"County",IF(OWNEDBY=-3,"HOA",IF(OWNEDBY=-4,"State",IF(OWNEDBY=-5,"Parks and Rec Dept",IF(OWNEDBY=-6,"City of St. Augustine",IF(OWNEDBY=-7,"Contractor"))))))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 17:44:57 GMT</pubDate>
    <dc:creator>bsklaohfl</dc:creator>
    <dc:date>2023-08-22T17:44:57Z</dc:date>
    <item>
      <title>Defining coded value domains</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321185#M1419</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a coded value domain for a field called asset owner, from -1 to -7. Which function would I use to define each value with a string. Example, -1 = Private, -2 = Other, etc etc.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321185#M1419</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-08-22T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Defining coded value domains</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321239#M1420</link>
      <description>Hi bsklaohfl,&lt;BR /&gt;&lt;BR /&gt;I believe you would:&lt;BR /&gt;&lt;BR /&gt;* Show Table&lt;BR /&gt;* Add Field&lt;BR /&gt;* Then type:&lt;BR /&gt;&lt;BR /&gt;IF(codedFieldName=-1,”Private”,IF(codedFieldName=-2,”Other”,IF(codedFieldName=-3,”Other2”,IF(codedFieldName=-4,”Other3”,IF(codedFieldName=-5,”Other4”,IF(codedFieldName=-5, “Other5”, IF(codedFieldName=-6,”Other6”, IF(codedFieldName=-7,”LastOther”, “Unknown”))))))))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I haven’t checked this, so apologies for a typo. But basically, you can write an IF function using the above syntax. It will go through and anything with a -x number will be given the corresponding text (e.g., “Other5”). If one of the values isn’t listed, it will be given “Unknown” – see the last value and change it to whatever you want.&lt;BR /&gt;&lt;BR /&gt;Better yet? I recommend downloading ArcGIS Insights Desktop. Open your data in the Data Engineering tool. Go to the field and select CHANGE DATA TYPE to String. Then do a FIND AND REPLACE on the field and replace every value with your preferred text. Very convenient in Data Engineering in Desktop version.&lt;BR /&gt;&lt;BR /&gt;I hope this helps! Sorry if I misinterpreted your question. And thank you for using ArcGIS Insights!&lt;BR /&gt;&lt;BR /&gt;Ian&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2023 16:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321239#M1420</guid>
      <dc:creator>Ian_Muehlenhaus</dc:creator>
      <dc:date>2023-08-22T16:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Defining coded value domains</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321279#M1423</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/555316"&gt;@Ian_Muehlenhaus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That worked! Thank you. I knew there had to be a way, thank you so much for your helpful response. I also installed ArcGIS Insights for Desktop - I didn't know it existed...ha! In case anyone is looking for something similar, here is the formula I used to calculate my asset ownership field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IF(OWNEDBY=-1,"Private",IF(OWNEDBY=-2,"Other",IF(OWNEDBY=1,"County",IF(OWNEDBY=-3,"HOA",IF(OWNEDBY=-4,"State",IF(OWNEDBY=-5,"Parks and Rec Dept",IF(OWNEDBY=-6,"City of St. Augustine",IF(OWNEDBY=-7,"Contractor"))))))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 17:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321279#M1423</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-08-22T17:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Defining coded value domains</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321283#M1424</link>
      <description>&lt;P&gt;So happy it helped,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/660570"&gt;@bsklaohfl&lt;/a&gt;! Woohoo!!!&lt;/P&gt;&lt;P&gt;Thanks for sharing the code you used.&lt;BR /&gt;&lt;BR /&gt;Yes, the IF statement comes in very, very handy! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Once you use it once, there's no going back! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for using ArcGIS Insights! All the best on your project!&lt;BR /&gt;&lt;BR /&gt;Ian&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 17:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321283#M1424</guid>
      <dc:creator>Ian_Muehlenhaus</dc:creator>
      <dc:date>2023-08-22T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Defining coded value domains</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321305#M1425</link>
      <description>Hi, you basically create a new field and calculate an if statement, so IF(asset owner = -1, 'Private', IF(asset owner = -2,'Other',...,default). Should get your coded values.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Laura Becht&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2023 18:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/defining-coded-value-domains/m-p/1321305#M1425</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2023-08-22T18:24:21Z</dc:date>
    </item>
  </channel>
</rss>

