<?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: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384510#M54899</link>
    <description>&lt;P&gt;Thanks for this.&amp;nbsp; I gave this a go, and while the calculation works for the total count or time that a type is submitted, The total quantity of each still eludes me.&lt;/P&gt;&lt;P&gt;I need to sum the total of each quantity submitted for a single type.&amp;nbsp; When I look at the data in the App, the total FRAG should be '22' but the calculation I tried above returns '2'.&lt;/P&gt;&lt;P&gt;Type is a String and Quantity is an Integer, when i change the bind on type is returns an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123Connect_data.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95281iD6AB66DCE8B4FA52/image-size/large?v=v2&amp;amp;px=999" role="button" title="123Connect_data.png" alt="123Connect_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 18:08:03 GMT</pubDate>
    <dc:creator>LindsayLewin</dc:creator>
    <dc:date>2024-02-20T18:08:03Z</dc:date>
    <item>
      <title>ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384422#M54893</link>
      <description>&lt;P&gt;I have a repeat group where the prompts the user to select one type of item found, there are many types to choose from.&amp;nbsp; Once type is selects, they need to identify the quantity - example:&amp;nbsp; 1. Type: NS , Quantity : 3; 2. Type Seed, Quantity: 1; 3. Type NS, Quantity: 5&lt;/P&gt;&lt;P&gt;In a summary group,&amp;nbsp; I am trying to Sum the total amounts for each type selects.&amp;nbsp; So from the example above the summaries should read:&lt;/P&gt;&lt;P&gt;Total NS: 8&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Seed: 1&lt;/P&gt;&lt;P&gt;I've been searching all weekend on the technical forums, but have tried multiple combinations in vain.&amp;nbsp; Can anyone help with this - it seems like it should be pretty basic but I am obviously missing something.&lt;/P&gt;&lt;P&gt;Please help!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123Connect.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95246i7426C12CC3C90427/image-size/large?v=v2&amp;amp;px=999" role="button" title="123Connect.png" alt="123Connect.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123Connect_choice.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95245i3F4FB0AD440A69EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="123Connect_choice.png" alt="123Connect_choice.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384422#M54893</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-02-20T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384450#M54894</link>
      <description>&lt;P&gt;sum() for a repeat&lt;/P&gt;&lt;P&gt;Where qty is an item in your repeat, sum(${qty}) outside the repeat will give you a total. Just be sure that both questions have the correct type (e.g., bind::type = int)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384450#M54894</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384454#M54896</link>
      <description>&lt;P&gt;Sorry, misread.&lt;/P&gt;&lt;P&gt;In your repeat, you need a formula for each item in the select_one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1708448659041.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95257i6D8416DC8981628D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1708448659041.png" alt="abureaux_0-1708448659041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then outside the repeat, you can sum each of those calculates.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384454#M54896</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384510#M54899</link>
      <description>&lt;P&gt;Thanks for this.&amp;nbsp; I gave this a go, and while the calculation works for the total count or time that a type is submitted, The total quantity of each still eludes me.&lt;/P&gt;&lt;P&gt;I need to sum the total of each quantity submitted for a single type.&amp;nbsp; When I look at the data in the App, the total FRAG should be '22' but the calculation I tried above returns '2'.&lt;/P&gt;&lt;P&gt;Type is a String and Quantity is an Integer, when i change the bind on type is returns an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123Connect_data.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95281iD6AB66DCE8B4FA52/image-size/large?v=v2&amp;amp;px=999" role="button" title="123Connect_data.png" alt="123Connect_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384510#M54899</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-02-20T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384546#M54902</link>
      <description>&lt;P&gt;Does this help? Or am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSX setup:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1708456638902.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95291iDC75096CA6F77527/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1708456638902.png" alt="abureaux_4-1708456638902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Choices tab:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1708456578146.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95289i8699465FE65B93D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1708456578146.png" alt="abureaux_2-1708456578146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End result is a sum() outside the repeat for each of the select_one items that gives me the total number of times each individual item was selected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1708456572376.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95288i6E47F380DF4B0974/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1708456572376.png" alt="abureaux_1-1708456572376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 19:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384546#M54902</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T19:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384632#M54907</link>
      <description>&lt;P&gt;Hi - I really appreciate your feedback.&lt;/P&gt;&lt;P&gt;Each individual item has some quantity associated with it.&amp;nbsp; I need that quantity summed, not how many times the item was selected&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;Item A was chosen and a Quantity of 3 was submitted&lt;/P&gt;&lt;P&gt;Item B was chosen and a Quantity of 2 was submitted&lt;/P&gt;&lt;P&gt;Item A was chosen and a Quantity of 5 was submitted.&lt;/P&gt;&lt;P&gt;The summary should say Item A has a total quantity of 8&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially I want to query an item choice and then sum the quantities that were submitted for those, not a count of how many times that item was selected.&lt;/P&gt;&lt;P&gt;I attached my form, line 28 would be the choice list that needs to be isolated and then line 33 needs to be summed from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 21:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384632#M54907</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-02-20T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384644#M54909</link>
      <description>&lt;P&gt;Oh, opps. My bad! That can still be done though.&lt;/P&gt;&lt;P&gt;I'll have a look at your XLSX!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 21:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384644#M54909</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 123 Connect - Sum of integer Value in Repeat based on a Select One Choice</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384668#M54910</link>
      <description>&lt;P&gt;A couple things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Required&lt;/STRONG&gt; only has two states: &amp;lt;yes&amp;gt; and &amp;lt;null&amp;gt;. There is actually no "no" option for "required", so you don't need to specify that.&lt;/LI&gt;&lt;LI&gt;${STUXO} was not formatted properly. You had an extra item attached to the end which broke the calculation:&lt;PRE&gt;, sum(${qty})&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;I had to fight with line 28, ${subtype}. While it was in the document, I kept getting "Error converting XLSX". I finally realized it was because you had the &lt;STRONG&gt;bind::type&lt;/STRONG&gt; set to &lt;STRONG&gt;int&lt;/STRONG&gt; for it. It is a text field, so that was causing a type mismatch (I wish it would just say that!)&lt;/LI&gt;&lt;LI&gt;The first thing I do to surveys I am looking at (once I get them into Connect), is run &lt;STRONG&gt;Tools &amp;gt; Analyze survey &lt;/STRONG&gt;(I highly recommend this). It noted two items which I recommend you look into:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1708467486491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95321iBB2F848DB6FB4B78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1708467486491.png" alt="abureaux_0-1708467486491.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;And lastly, a question. Because this XLSX was working for you, I am wondering if your Connect is up to date? Current version is 3.19.104. If you don't have at least that, I'd also recommend reinstalling Connect through the Microsoft Store (MS Store version auto-updates Connect for you).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is what the set-up would look like for getting totals of ${qty}:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1708467950057.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95323iD6B514E6027A58B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1708467950057.png" alt="abureaux_1-1708467950057.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1708468026103.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95324iB97AD93DB4BE97F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1708468026103.png" alt="abureaux_2-1708468026103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You just need to expand this to all available options.&lt;/P&gt;&lt;P&gt;Now, I need to go on and tell you about a quirk of calculates and repeats... Essentially, if you type a number into a text box within a repeat, and then immediately add a new item to that repeat, your value is &lt;U&gt;ignored&lt;/U&gt; by calculates! This is problematic... The value &lt;EM&gt;will&lt;/EM&gt; calculate properly if the end user: 1) Manually scrolls back through the repeat, 2) the user to presses "enter" after typing the value, or 3) the user clicking into another text box. But these aren't reliable options in my opinion. Luckily, you are working with numbers and not text! That make this easier...&lt;/P&gt;&lt;P&gt;To eliminate this issue, I recommend setting ${qty} to the &lt;EM&gt;numbers&lt;/EM&gt; appearance:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_3-1708468189974.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95327i59D8F385FE823E02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_3-1708468189974.png" alt="abureaux_3-1708468189974.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically, the &lt;EM&gt;numbers&lt;/EM&gt; appearance enters the value, and then presses "Enter" for you, ensuring all calculates work as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 22:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/arcgis-123-connect-sum-of-integer-value-in-repeat/m-p/1384668#M54910</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T22:36:17Z</dc:date>
    </item>
  </channel>
</rss>

