<?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 Using model builder for summary statistics and setting ranges to group by in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843168#M592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;I am trying to perform a summary on a poly line dataset. This data contains an attribute for the year the section was laid and the diameter of the section. I want to sum the length of these sections group them by both year and band. However I want to group the bands and years e.g&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;year laid 2000-2010 and diameter 150-300 mm. I have created a model which does what I want but I was wondering if there was an easier way to carry out this task. I was also wondering if there was a way to modify the model so that the user could can the year bands and diameters in a table of spreadsheet. I am new to the model builder. Maybe there is a better way to do what I am trying to do. See attached images.&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Ciaran&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Mar 2019 11:50:51 GMT</pubDate>
    <dc:creator>CiaranHiggins1</dc:creator>
    <dc:date>2019-03-23T11:50:51Z</dc:date>
    <item>
      <title>Using model builder for summary statistics and setting ranges to group by</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843168#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;I am trying to perform a summary on a poly line dataset. This data contains an attribute for the year the section was laid and the diameter of the section. I want to sum the length of these sections group them by both year and band. However I want to group the bands and years e.g&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;year laid 2000-2010 and diameter 150-300 mm. I have created a model which does what I want but I was wondering if there was an easier way to carry out this task. I was also wondering if there was a way to modify the model so that the user could can the year bands and diameters in a table of spreadsheet. I am new to the model builder. Maybe there is a better way to do what I am trying to do. See attached images.&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #454545; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;Ciaran&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2019 11:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843168#M592</guid>
      <dc:creator>CiaranHiggins1</dc:creator>
      <dc:date>2019-03-23T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using model builder for summary statistics and setting ranges to group by</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843169#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make an model input variable a multi value list, one variable for each of your classify variables.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="create multi value model variable" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440257_snip3.png" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;IMG __jive_id="440256" alt="multi value model builder variable" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440256_snip1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use that&amp;nbsp;multi value list in Calculate Field, inside the code block splitting it into a Python list with “;”.split().&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a Calculate Field expression I came up with that seems to do what you want. &lt;A href="https://community.esri.com/migrated-users/3116" target="_blank"&gt;Dan Patterson&lt;/A&gt;‌ numpy is pretty handy!&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;# Calculate Field expression, specifying to update field "class"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Source field is the name of the field we want to classify&lt;/SPAN&gt;
classify&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;Source field&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Code block &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# breaks is a multivalue model variable I created of type Double&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; numpy &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; np
breaks &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sorted&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; k &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%breaks%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string 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="punctuation token"&gt;)&lt;/SPAN&gt;
breaklab &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&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="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
breaklab &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"{} up to {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; breaks&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="operator 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="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; k &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator 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="punctuation token"&gt;]&lt;/SPAN&gt;
breaklab &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;gt;={}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator 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="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
breaks &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&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;classify&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;vv&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    p &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;searchsorted&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;breaks&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; vv&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'right'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; breaklab&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;p&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="440255" alt="results of lookup" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440255_snip.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843169#M593</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using model builder for summary statistics and setting ranges to group by</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843170#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information but i must be doing something stupid. I have tried to simplify this to test. So i created a new feature class with the same structure as your example and with the same names. When i try to run the model i get an error about value type. I have set the to type double. See attached images which will hopefulyl help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;IMG alt="Attributes" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440261_Attributes.png" /&gt;&lt;IMG alt="Table Structure" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440262_TableStructure.png" /&gt;&lt;IMG alt="Model Layout" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440263_ModelLayout.png" /&gt;&lt;IMG alt="Variable" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440264_Variable.png" /&gt;&lt;IMG alt="Python" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440265_Python.png" /&gt;&lt;IMG alt="Error" class="image-6 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440266_Error.png" /&gt;&lt;/P&gt;&lt;P&gt;Ciaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 10:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843170#M594</guid>
      <dc:creator>CiaranHiggins1</dc:creator>
      <dc:date>2019-03-25T10:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using model builder for summary statistics and setting ranges to group by</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843171#M595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got this working now thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't realise the coulmn that is being updated has to be of datatype text/string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 11:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/843171#M595</guid>
      <dc:creator>CiaranHiggins1</dc:creator>
      <dc:date>2019-03-25T11:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using model builder for summary statistics and setting ranges to group by</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/1022224#M596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1325"&gt;@curtvprice&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know this is an old post but i am doing something similar, but instead of multivalue variable i am using Table of Values variable. and i need to split the variables so that i could use in them for field calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have posted a question &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/inline-variable-with-quot-table-of-values-quot-option-and-its/td-p/1022013" target="_self"&gt;here&lt;/A&gt; in communities would love to pick your brains on the topic&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hussain&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 18:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/using-model-builder-for-summary-statistics-and/m-p/1022224#M596</guid>
      <dc:creator>HussainMalik1</dc:creator>
      <dc:date>2021-02-01T18:41:26Z</dc:date>
    </item>
  </channel>
</rss>

