<?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 select by attributes in model builder to produce summary/sum table of selected attributes in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144558#M51545</link>
    <description>&lt;P&gt;Hi Kim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the detailed response. It worked! Also the model you have presented seems far less cumbersome in comparison to the model I eventually got to work (I'll attached so you can see).&lt;/P&gt;&lt;P&gt;Liam.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 12:04:45 GMT</pubDate>
    <dc:creator>LiamO_Brien</dc:creator>
    <dc:date>2022-02-16T12:04:45Z</dc:date>
    <item>
      <title>Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1141144#M51046</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Hope all is well. I’m quite new to Model Builder, and I have been attempting to automize some of the work we do within ArcGIS Pro. Attached is an example of 1 type of material in which we need to count within ArcPro. Currently ‘Select by Attributes’ is used to select each individual line (so 6 select by attribute queries ran for this one material) e.g.;&lt;/P&gt;&lt;P&gt;Where 'status' = 1&lt;/P&gt;&lt;P&gt;And 'height' = 8.5&lt;/P&gt;&lt;P&gt;And 'build_clas' = C1&lt;/P&gt;&lt;P&gt;Ideally the result would have a table or excel with the sum values from each line. I have also attached the model builder I made but cant figure out the last part, which is a table stating the sum values from each query. Is this possible, or could someone provide some advice material that might point me in the correct direction?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Liam.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1141144#M51046</guid>
      <dc:creator>LiamO_Brien</dc:creator>
      <dc:date>2022-02-07T13:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1141174#M51050</link>
      <description>&lt;P&gt;Unless I'm missing something it looks like your writing your six queries against the same feature class.&amp;nbsp; I would use one query; something like this with your initial queries encased in parenthesis separated by "OR" statements (this example only has three queriers made into one):&lt;/P&gt;&lt;P&gt;((status = 1 AND height = 8.5 AND build_clas = 'C1') OR (status = 1 AND height = 9 AND build_clas = 'C2') OR (status = 2 AND height = 9.5 AND build_clas = 'C1'))&lt;/P&gt;&lt;P&gt;Then you would have to add a column to your output table to hold the sum (Add Field) and use the Calculate Field tool to populate it.&lt;/P&gt;&lt;P&gt;Hope I understood your question correctly and that this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 14:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1141174#M51050</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-07T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1143994#M51475</link>
      <description>&lt;P&gt;Hi Kim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me, unfortunately with that solution I will be left with 1 sum value for the 6 queries. Rather I require an output table stating the sum value of each individual query. Is this possible?&lt;/P&gt;&lt;P&gt;Liam.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 11:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1143994#M51475</guid>
      <dc:creator>LiamO_Brien</dc:creator>
      <dc:date>2022-02-15T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144110#M51499</link>
      <description>&lt;P&gt;Sample data I had laying around is points (table view below):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1644940243621.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33940iCBAE38A16DB68562/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1644940243621.png" alt="KimGarbade_1-1644940243621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wrote a quick model that takes the first 3 records above, writes them to another table and sums the "color" values for each row (I.E. Red, Yellow, etc).&lt;/P&gt;&lt;P&gt;1) First thing I did was create a blank&amp;nbsp; table in my database (not a feature class) that has the format I want in my output (in my case just the starting table with a field to hold the sum of the "Color" values).&amp;nbsp; This is the file I'm going to append the results of the "Select by Attributes" to and the table I'm going to "Calculate Field" against. Initially its empty.... see I just added a "ColorTotal" field to the schema of the input table, but yours can be more complex.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_2-1644940501742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33941i5B35B4E6C5023340/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_2-1644940501742.png" alt="KimGarbade_2-1644940501742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Next I wrote the sub-model.&amp;nbsp; Instead of writing 6 selects I used a "MultiValue" iterator and used its %value% as input into my "Select Layer By Attribute" tool. The results of that tool I appended to the table I created in step one (TestCal in my case).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_4-1644940798844.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33943i3DB7B1784E26CCC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_4-1644940798844.png" alt="KimGarbade_4-1644940798844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) The last step was to create the "Main" model that uses the sub-model created in step 2.&amp;nbsp; All this model does is uses the output of the sub model (the TestCalc table) as input into a "Calculate Field" tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_5-1644940864778.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33944i7926D5893E153C53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_5-1644940864778.png" alt="KimGarbade_5-1644940864778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The result being:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_6-1644940939969.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33945i319C768AAE3B4DC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_6-1644940939969.png" alt="KimGarbade_6-1644940939969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 16:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144110#M51499</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-15T16:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144558#M51545</link>
      <description>&lt;P&gt;Hi Kim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the detailed response. It worked! Also the model you have presented seems far less cumbersome in comparison to the model I eventually got to work (I'll attached so you can see).&lt;/P&gt;&lt;P&gt;Liam.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 12:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144558#M51545</guid>
      <dc:creator>LiamO_Brien</dc:creator>
      <dc:date>2022-02-16T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using select by attributes in model builder to produce summary/sum table of selected attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144574#M51550</link>
      <description>&lt;P&gt;No problem.&amp;nbsp; I'm glad it worked out.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 13:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-select-by-attributes-in-model-builder-to/m-p/1144574#M51550</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-16T13:23:55Z</dc:date>
    </item>
  </channel>
</rss>

