<?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: Using GET VALUE in an iterative model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824157#M2303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will have a look and see what is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 15:28:30 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-08-03T15:28:30Z</dc:date>
    <item>
      <title>Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824150#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp; I have a data processing model&amp;nbsp; in ModelBuilder that makes heavy use of the "Get field value" tool.&amp;nbsp; I need to iterate the model over many tables in a geodatabase.&amp;nbsp; When I do this, I do not get the correct values on the output based on the Get field - for each input table, the output is the same each time.&amp;nbsp; I think what is happening is the Get values are being held over from the first run of the model and not being picked up again with values from the next table as the model re-runs.&amp;nbsp; I have also had the same issue trying to use batch on the model.&amp;nbsp; Is there some command I can add to the end of the model that will clear the Get values from the system memory?&amp;nbsp; This is in Desktop 10.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824150#M2296</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-03T13:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824151#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a model starts getting more complex I would probably switch to using Python, which gives better control over the functionality and memory usage. Can you share a screenshot of your model to see how complex it is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824151#M2297</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-03T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824152#M2298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The model is not particularly complicated, but it uses GET 15 times.&amp;nbsp; I am not great with Python so if I can find an MB solution I'd like to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Whole model" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/365571_Model_all.png" style="width: 620px; height: 97px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/365591_pastedImage_3.png" style="width: 620px; height: 364px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/365592_pastedImage_4.png" style="width: 620px; height: 364px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/365593_pastedImage_5.png" style="width: 620px; height: 364px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/365594_pastedImage_6.png" style="width: 620px; height: 364px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824152#M2298</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-03T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824153#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you indicate that the model is not very complex, I see that you use around 60 tools. In this case I would go for a Python script&amp;nbsp;which also provides more tools for debugging in case&amp;nbsp;the result is not what you expected. &amp;nbsp;I suppose an edited version of the script would not be to complex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to export the model as a python script to see what is actually being done? The tools in the screenshot are showing the descriptions that you added to make the model easier to understand, but it reveals the actual tools and parameters used.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824153#M2299</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-03T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824154#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# -*- coding: utf-8 -*-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# VPI_single_interative_BM_export.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Created on: 2017-08-03 10:21:29.00000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;import arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Load required toolboxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.ImportToolbox("Model Functions")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;VPI_Intervals_Around_Mean_results_gdb = "P:\\Trans\\Technical\\Data Development\\Internal\\EnvironmentalStudies\\EJ2017\\gdb\\VPI_Intervals_Around_Mean_results.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Disability = "\\\\bmc\\dfs\\Projects\\Trans\\Technical\\Data Development\\Internal\\EnvironmentalStudies\\EJ2017\\gdb\\VPI_Intervals_Around_Mean_results.gdb\\Disability"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__23_ = Disability&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Statistics_table = "\\\\bmc\\dfs\\Projects\\Trans\\Technical\\Data Development\\Internal\\EnvironmentalStudies\\EJ2017\\gdb\\VPI_Intervals_Around_Mean_results.gdb\\%TableName%_Statistics"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Min = Statistics_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Max = Statistics_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Mean = Statistics_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class = Statistics_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__2_ = Output_Feature_Class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__3_ = Output_Feature_Class__2_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__4_ = Output_Feature_Class__3_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Poverty__Statistics__2_ = Output_Feature_Class__4_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__5_ = Poverty__Statistics__2_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__6_ = Output_Feature_Class__5_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;RBM = Output_Feature_Class__5_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;RAM = Output_Feature_Class__5_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__7_ = Output_Feature_Class__6_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;RBM_Quartile = Output_Feature_Class__7_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;RAM_Quartile = Output_Feature_Class__7_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Poverty__Statistics__3_ = Output_Feature_Class__7_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__8_ = Poverty__Statistics__3_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__9_ = Output_Feature_Class__8_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__10_ = Output_Feature_Class__9_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__11_ = Output_Feature_Class__10_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__12_ = Output_Feature_Class__11_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__13_ = Output_Feature_Class__12_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__14_ = Output_Feature_Class__13_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__15_ = Output_Feature_Class__14_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__16_ = Output_Feature_Class__15_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__17_ = Output_Feature_Class__16_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__18_ = Output_Feature_Class__17_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__19_ = Output_Feature_Class__18_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__20_ = Output_Feature_Class__19_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__21_ = Output_Feature_Class__20_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__22_ = Output_Feature_Class__21_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score1 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score2 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score3 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score4 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score5 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score6 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score7 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Score8 = Output_Feature_Class__22_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;v_TableName__Table_View = "%TableName%_Table_View"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__5_ = v_TableName__Table_View&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__24_ = Output_Layer_Name__5_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__7_ = Output_Feature_Class__24_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__28_ = Output_Layer_Name__7_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__6_ = Output_Feature_Class__28_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__29_ = Output_Layer_Name__6_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name = Output_Feature_Class__29_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__25_ = Output_Layer_Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__2_ = Output_Feature_Class__25_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__26_ = Output_Layer_Name__2_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__3_ = Output_Feature_Class__26_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__30_ = Output_Layer_Name__3_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__4_ = Output_Feature_Class__30_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__27_ = Output_Layer_Name__4_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__8_ = Output_Feature_Class__27_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Feature_Class__31_ = Output_Layer_Name__8_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Output_Layer_Name__9_ = Output_Feature_Class__31_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;TableName = "Disability"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Name = "Disability"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Iterate Tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.IterateTables_mb(VPI_Intervals_Around_Mean_results_gdb, "", "", "NOT_RECURSIVE")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Summary Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.Statistics_analysis(Disability, Statistics_table, "PCT MIN;PCT MAX;REG FIRST", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Min&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Statistics_table, "MIN_PCT", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Max&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Statistics_table, "MAX_PCT", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Statistics_table, "FIRST_REG", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Range Below Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Statistics_table, "Range_Below_Mean", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Range Above Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class, "Range_Above_Mean", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field RBM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__2_, "RBM_Quartile", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field RAM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__3_, "RAM_Quartile", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Range Below Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__4_, "Range_Below_Mean", "%Mean%-%Min%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Range Above Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Poverty__Statistics__2_, "Range_Above_Mean", "%Max%-%Mean%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get RAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__5_, "Range_Above_Mean", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get RBM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__5_, "Range_Below_Mean", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate RBM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__5_, "RBM_Quartile", "%RBM%/4", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate RAM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__6_, "RAM_Quartile", "%RAM%/4", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get RBM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__7_, "RBM_Quartile", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get RAM Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__7_, "RAM_Quartile", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score1 (RBM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__7_, "Score1", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score2 (RBM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Poverty__Statistics__3_, "Score2", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score3 (RBM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__8_, "Score3", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score4 (RBM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__9_, "Score4", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score5 (RAM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__10_, "Score5", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score6 (RAM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__11_, "Score6", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score7 (RAM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__12_, "Score7", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Field Score8 (RAM value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Output_Feature_Class__13_, "Score8", "DOUBLE", "18", "18", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__14_, "Score1", "%Min%+%RBM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__15_, "Score2", "%Min%+%RBM_Quartile%+%RBM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__16_, "Score3", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__17_, "Score4", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__18_, "Score5", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RAM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__19_, "Score6", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RAM_Quartile%+%RAM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__20_, "Score7", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RAM_Quartile%+%RAM_Quartile%+%RAM_Quartile%", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Score8 +1 in case there is shortfall from decimal differences&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Feature_Class__21_, "Score8", "%Min%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RBM_Quartile%+%RAM_Quartile%+%RAM_Quartile%+%RAM_Quartile%+%RAM_Quartile%+1", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score1", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score2", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score3", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score4", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score5", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score6", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score7", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Get Score8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.GetFieldValue_mb(Output_Feature_Class__22_, "Score8", "Any value", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Add Score Class Field to Data Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.AddField_management(Disability, "Score_%TableName%", "LONG", "12", "", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Make Table View&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.MakeTableView_management(Output_Feature_Class__23_, v_TableName__Table_View, "", "", "OBJECTID OBJECTID VISIBLE NONE;GEOID GEOID VISIBLE NONE;GEOID2 GEOID2 VISIBLE NONE;NAME NAME VISIBLE NONE;EST_TOTALPOP EST_TOTALPOP VISIBLE NONE;MOE_TOTALPOP MOE_TOTALPOP VISIBLE NONE;EST_DISABLED_M_under5 EST_DISABLED_M_under5 VISIBLE NONE;MOE_DISABLED_M_under5 MOE_DISABLED_M_under5 VISIBLE NONE;EST_DISABLED_M_5_17_yr EST_DISABLED_M_5_17_yr VISIBLE NONE;MOE_DISABLED_M_5_17_yr MOE_DISABLED_M_5_17_yr VISIBLE NONE;EST_DISABLED_M_18_34_yr EST_DISABLED_M_18_34_yr VISIBLE NONE;MOE_DISABLED_M_18_34_yr MOE_DISABLED_M_18_34_yr VISIBLE NONE;EST_DISABLED_M_35_64_yr EST_DISABLED_M_35_64_yr VISIBLE NONE;MOE_DISABLED_M_35_64_yr MOE_DISABLED_M_35_64_yr VISIBLE NONE;EST_DISABLED_M_65_74_yr EST_DISABLED_M_65_74_yr VISIBLE NONE;MOE_DISABLED_M_65_74_yr MOE_DISABLED_M_65_74_yr VISIBLE NONE;EST_DISABLED_M_75yr_up EST_DISABLED_M_75yr_up VISIBLE NONE;MOE_DISABLED_M_75yr_up MOE_DISABLED_M_75yr_up VISIBLE NONE;EST_DISABLED_F_under5 EST_DISABLED_F_under5 VISIBLE NONE;MOE_DISABLED_F_under5 MOE_DISABLED_F_under5 VISIBLE NONE;EST_DISABLED_F_5_17_yr EST_DISABLED_F_5_17_yr VISIBLE NONE;MOE_DISABLED_F_5_17_yr MOE_DISABLED_F_5_17_yr VISIBLE NONE;EST_DISABLED_F_18_34_yr EST_DISABLED_F_18_34_yr VISIBLE NONE;MOE_DISABLED_F_18_34_yr MOE_DISABLED_F_18_34_yr VISIBLE NONE;EST_DISABLED_F_35_64_yr EST_DISABLED_F_35_64_yr VISIBLE NONE;MOE_DISABLED_F_35_64_yr MOE_DISABLED_F_35_64_yr VISIBLE NONE;EST_DISABLED_F_65_74_yr EST_DISABLED_F_65_74_yr VISIBLE NONE;MOE_DISABLED_F_65_74_yr MOE_DISABLED_F_65_74_yr VISIBLE NONE;EST_DISABLED_F_75yr_up EST_DISABLED_F_75yr_up VISIBLE NONE;MOE_DISABLED_F_75yr_up MOE_DISABLED_F_75yr_up VISIBLE NONE;EST_DISABLED EST_DISABLED VISIBLE NONE;PCT_DISABLED PCT_DISABLED VISIBLE NONE;REG_PCT_DISABLED REG_PCT_DISABLED VISIBLE NONE;PCT PCT VISIBLE NONE;REG REG VISIBLE NONE;COUNTY_FIPS COUNTY_FIPS VISIBLE NONE;Score_%TableName% Score_%TableName% VISIBLE NONE")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 1st category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(v_TableName__Table_View, "NEW_SELECTION", "PCT &amp;lt;=%Score1%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__5_, "Score_%TableName%", "1", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 2nd category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__24_, "NEW_SELECTION", "PCT &amp;gt;%Score1% AND PCT &amp;lt;=%Score2%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__7_, "Score_%TableName%", "2", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 3rd category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__28_, "NEW_SELECTION", "PCT &amp;gt;%Score2% AND PCT &amp;lt;=%Score3%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__6_, "Score_%TableName%", "3", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 4th category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__29_, "NEW_SELECTION", "PCT &amp;gt;%Score3% AND PCT &amp;lt;=%Score4%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name, "Score_%TableName%", "4", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 5th category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__25_, "NEW_SELECTION", "PCT &amp;gt;%Score4% AND PCT &amp;lt;=%Score5%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__2_, "Score_%TableName%", "5", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 6th category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__26_, "NEW_SELECTION", "PCT &amp;gt;%Score5% AND PCT &amp;lt;=%Score6%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__3_, "Score_%TableName%", "6", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 7th category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__30_, "NEW_SELECTION", "PCT &amp;gt;%Score6% AND PCT &amp;lt;=%Score7%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__4_, "Score_%TableName%", "7", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Select 8th category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__27_, "NEW_SELECTION", "PCT &amp;gt;%Score7%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Calculate Field Score=8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.CalculateField_management(Output_Layer_Name__8_, "Score_%TableName%", "8", "VB", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Clear selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.SelectLayerByAttribute_management(Output_Feature_Class__31_, "CLEAR_SELECTION", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Process: Parse Path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.ParsePath_mb(Disability, "NAME")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824154#M2300</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-03T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824155#M2301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as I imagined, the Model Builder export as script is really hard to read. Lot´s of unnecessary lines of code.Is it possible to share a part of the data that you are using? I want to understand what the actual output is, to see if the code can be simplified using list and/or dictionaries (I'm pretty sure it can be).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824155#M2301</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-03T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824156#M2302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, it's all derived from Census data.&amp;nbsp; Here is the file gdb.&amp;nbsp; The model creates a statistics table for each table in the gdb&amp;nbsp; and uses the data from the statistics tables to modify the main table.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.northarrow.org/GIS/VPI_gdb.zip"&gt;www.northarrow.org/GIS/VPI_gdb.zip&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824156#M2302</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-03T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824157#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will have a look and see what is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824157#M2303</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-03T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824158#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find below a sample script that I created to create a score field with the scores to a copy of the input tables in the file geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On line 16 you would change the path to the file geodatabase with your path:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"P:\\Trans\\Technical\\Data Development\\Internal\\EnvironmentalStudies\\EJ2017\\gdb\\VPI_Intervals_Around_Mean_results.gdb"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not write all the intermediate statistics to output fields, but below the script I have printed a list with the statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#-------------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table_stats.py&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Purpose:&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Author:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xbakker&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04/08/2017&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#-------------------------------------------------------------------------------&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# import modules&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# settings&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ws &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\VPI\VPI_Intervals_Around_Mean_results.gdb'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_pct &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'PCT'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_reg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'REG'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_score &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Score'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl_out_template &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{0}_Statistics"&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# get list of table names&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ws
&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl_names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListTables&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# loop through table names&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; tbl_name &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; tbl_names&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nProcessing:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tbl_name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tbl_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tbl_out_template&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# get first REG value&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Get first REG value..."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld_reg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;next&lt;SPAN class="punctuation 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="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# get list with all the PCT values&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"create list with PCT values..."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_pct &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld_pct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# statistics&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pct_min &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; min&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_pct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pct_max &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; max&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_pct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pct_mean &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sum&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_pct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_pct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - PCT min :"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pct_min
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - PCT mean:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pct_mean
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - PCT max :"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pct_max

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rbm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pct_mean &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; pct_min
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pct_max &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; pct_mean
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rbm_qua &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; rbm &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4.0&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram_qua &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ram &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4.0&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - RBM:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; rbm
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - RAM:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ram
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - RBM Quantile:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; rbm_qua
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - RAM Quantile:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ram_qua

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# make list of score&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scores &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pct_min &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; a &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; rbm_qua &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; a &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scores&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extend&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pct_mean &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; a &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; ram_qua &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; a &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - list of scores:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; scores

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# make copy of input table&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"make copy of table..."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# add score field&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"add score..."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld_score&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SHORT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# update cursor for scores&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"update output table with score..."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld_pct&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld_score&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; curs&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; curs&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pct &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; score &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GetScore&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pct&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; scores&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pct&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; score&lt;SPAN class="punctuation 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;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GetScore&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;val&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; scores&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scores&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; val &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; scores&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; i
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&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;/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;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;/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;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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Output &amp;nbsp;messages with statistics:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Processing: Disability
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 12.0926549809
 - PCT max : 36.5693430657
 - RBM: 12.0926549809
 - RAM: 24.4766880848
 - RBM Quantile: 3.02316374523
 - RAM Quantile: 6.1191720212
 - list of scores: [0.0, 3.0231637452271105, 6.046327490454221, 9.069491235681332, 12.092654980908442, 18.21182700210469, 24.330999023300937, 30.450171044497182, 36.56934306569343]
make copy of table...
add score...
update output table with score...

Processing: Elderly
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 6.19322841776
 - PCT max : 47.5251959686
 - RBM: 6.19322841776
 - RAM: 41.3319675509
 - RBM Quantile: 1.54830710444
 - RAM Quantile: 10.3329918877
 - list of scores: [0.0, 1.5483071044406356, 3.096614208881271, 4.644921313321907, 6.193228417762542, 16.52622030548316, 26.85921219320378, 37.1922040809244, 47.525195968645015]
make copy of table...
add score...
update output table with score...

Processing: Hispanic
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 4.85961907506
 - PCT max : 47.3402796819
 - RBM: 4.85961907506
 - RAM: 42.4806606069
 - RBM Quantile: 1.21490476876
 - RAM Quantile: 10.6201651517
 - list of scores: [0.0, 1.214904768764334, 2.429809537528668, 3.644714306293002, 4.859619075057336, 15.479784226775589, 26.099949378493843, 36.7201145302121, 47.340279681930355]
make copy of table...
add score...
update output table with score...

Processing: LEP
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 1.75262227971
 - PCT max : 22.6290097629
 - RBM: 1.75262227971
 - RAM: 20.8763874832
 - RBM Quantile: 0.438155569927
 - RAM Quantile: 5.2190968708
 - list of scores: [0.0, 0.4381555699265956, 0.8763111398531912, 1.3144667097797869, 1.7526222797063824, 6.97171915050503, 12.190816021303679, 17.409912892102327, 22.629009762900974]
make copy of table...
add score...
update output table with score...

Processing: Minority
Get first REG value...
create list with PCT values...
 - PCT min : 0.454545454545
 - PCT mean: 43.1132722883
 - PCT max : 100.0
 - RBM: 42.6587268337
 - RAM: 56.8867277117
 - RBM Quantile: 10.6646817084
 - RAM Quantile: 14.2216819279
 - list of scores: [0.45454545454545453, 11.11922716297691, 21.783908871408364, 32.44859057983982, 43.113272288271276, 57.33495421620346, 71.55663614413564, 85.77831807206782, 100.0]
make copy of table...
add score...
update output table with score...

Processing: NoCar
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 13.4770798991
 - PCT max : 80.9723386421
 - RBM: 13.4770798991
 - RAM: 67.495258743
 - RBM Quantile: 3.36926997476
 - RAM Quantile: 16.8738146858
 - list of scores: [0.0, 3.3692699747642747, 6.738539949528549, 10.107809924292823, 13.477079899057099, 30.350894584812522, 47.22470927056794, 64.09852395632338, 80.9723386420788]
make copy of table...
add score...
update output table with score...

Processing: Poverty
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 12.8652327732
 - PCT max : 76.9938650307
 - RBM: 12.8652327732
 - RAM: 64.1286322575
 - RBM Quantile: 3.2163081933
 - RAM Quantile: 16.0321580644
 - list of scores: [0.0, 3.216308193301268, 6.432616386602536, 9.648924579903804, 12.865232773205072, 28.897390837572516, 44.92954890193996, 60.9617069663074, 76.99386503067484]
make copy of table...
add score...
update output table with score...

Processing: Disability_Statistics
Get first REG value...
create list with PCT values...
 - PCT min : 0.0
 - PCT mean: 12.0926549809
 - PCT max : 36.5693430657
 - RBM: 12.0926549809
 - RAM: 24.4766880848
 - RBM Quantile: 3.02316374523
 - RAM Quantile: 6.1191720212
 - list of scores: [0.0, 3.0231637452271105, 6.046327490454221, 9.069491235681332, 12.092654980908442, 18.21182700210469, 24.330999023300937, 30.450171044497182, 36.56934306569343]
make copy of table...
add score...
update output table with score...‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/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;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;/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;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;/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;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;P&gt;&lt;/P&gt;&lt;P&gt;The script can easily be converted to a tool in a toolbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824158#M2304</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824159#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I am not great with Python so if I can find an MB solution I'd like to.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I am big proponent of using the Calculate Value tool to run little snippets of Python for things like this to simplify your model and make it validate faster (and sometimes avoid depending on Model Builder's sometimes wonky validation, which I think was tripping you up). This approach takes advantage of Model Builder's ease of use, while you build your Python skills in the direction of Xander's, which I must admit I envy!! &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Here's a little example of what I'm talking about from your workflow. This little script could be enhanced to also initialize your field values as well&amp;nbsp;using either Calculate Field or an update cursor.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Calculate Value Expression&lt;/SPAN&gt;
addfields&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%Output Feature Class (7)%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Calculate Value Code Block&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;addfields&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;# add fields SCORE1 - SCORE8 &lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; ff &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ds&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SCORE{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ff&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"DOUBLE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; ds
&lt;SPAN class="comment token"&gt;# Calculate Value Data Type: Feature Class‍‍‍‍‍‍‍‍&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# (Setting this allows you connect the Calculate Value result&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# to a tool that needs Feature Class input)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I have also had the same issue trying to use batch on the model.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/676425-batch-a-model-model-builder#comment-676373" target="_blank"&gt;Batch is not supported with Model Builder&amp;nbsp;tools.&lt;/A&gt; You should use iterators instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Note, if you post code in the future check this out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=3ad791a4-288b-4f6c-aa72-f20f6820c92d&amp;amp;searchIndex=0" target="_blank"&gt;/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=3ad791a4-288b-4f6c-aa72-f20f6820c92d&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824159#M2305</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824160#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help, this works great.&amp;nbsp; The math isn't quite right but I don't think that could have been guessed from my model without a detailed explanation, I can easily adjust it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 15:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824160#M2306</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-07T15:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824161#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad the code is helpful and that you can adjust it to your needs. Would be nice to hear what calculations should be done differently. If you need some additional explanation on the code, I can provide a more detailed description. It is also possible to create a tool from it which can be used in model builder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 19:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824161#M2307</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-07T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824162#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field REG contains the regional mean to calculate the scores from. The same result could be obtained summing the tracts for the field of interest and calculating it against the summed total population - but again I don't think this would have been obvious without further explanation.&amp;nbsp; Taking the mean of the percentages creates an unstable result - the regional mean would vary depending on if you used tracts, counties, or other geography. Summing the geographies and taking the percent from the sum gives a consistent number for the region.&amp;nbsp; But this script is a great help and I will put it to good use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 20:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824162#M2308</guid>
      <dc:creator>MaraKaminowitz</dc:creator>
      <dc:date>2017-08-07T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET VALUE in an iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824163#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 02:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-get-value-in-an-iterative-model/m-p/824163#M2309</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-08T02:28:01Z</dc:date>
    </item>
  </channel>
</rss>

