<?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: How do I calculate text fields to output data from multiple related records? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852088#M23768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will Survey123 3.0 support&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;indexed-repeats, position() or/and join() functions ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Apr 2018 11:56:16 GMT</pubDate>
    <dc:creator>nejibco</dc:creator>
    <dc:date>2018-04-28T11:56:16Z</dc:date>
    <item>
      <title>How do I calculate text fields to output data from multiple related records?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852086#M23766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Pole Inspection survey with a repeat for possible multiple cross arms. There is also a 'Design Use Only' field which is pre-populated with conditional calculations based on certain fields of a like-for-like replacement. In the case of there being more than one record for multiple cross arm condition failures, I want to be able to extract ALL of the failed cross arms. Presently it works only for the cross arm record that is currently showing on the form.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382851_pastedImage_1.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;Above is the first cross arm; showing correctly in the output field:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/382852_pastedImage_2.png" style="width: 620px; height: 128px;" /&gt;&lt;/P&gt;&lt;P&gt;Second cross arm on the form:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/382862_pastedImage_3.png" style="width: 620px; height: 380px;" /&gt;&lt;/P&gt;&lt;P&gt;Showing correctly on the form (but the first record has dropped off):&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/382863_pastedImage_4.png" style="width: 620px; height: 125px;" /&gt;&lt;/P&gt;&lt;P&gt;The desired output should have BOTH cross arms:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/382864_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Calculation is: &lt;SPAN style="color: #ff0000;"&gt;(highlighted section calculates if cross arms fail inspection)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;"GIS #" + ${PoleNumber} + "\n" + ${PlanPoleNumber} + "." + "\n" + if((selected(${TagFitted}, 'Red')) or (selected(${PoleTopCondition}, 'Fail')) or (selected(${PoleGroundCondition}, 'Fail')) or (selected(${PoleOtherCondition}, 'Fail')), 'RMV. ' + round(${Height}, 1) + 'm ' + pulldata('Pole_SubtypeCD','Description','Code', ${Material}) + "\n", '') + &lt;SPAN style="font-size: 15px; color: #ff0000;"&gt;&lt;STRONG&gt;if((selected(${CrossArmCondition}, 'Fail')), 'RMV. ' + pulldata('Pole_Crossarm','Description','Code', ${CrossArmType}) + ' ' + pulldata('OperatingVoltage','Description','Code', ${CrossArmVoltage}) + ' ' + pulldata('Pole_Crossarm_Size','Description','Code', ${CrossArmSize}) + ' @ ' + ${CrossArmHeightAGL} + "\n" + 'N. ' + pulldata('Pole_Crossarm','Description','Code', ${CrossArmType}) + ' ' + pulldata('OperatingVoltage','Description','Code', ${CrossArmVoltage}) + ' ' + pulldata('Pole_Crossarm_Size','Description','Code', ${CrossArmSize}) + ' @ ' + ${CrossArmHeightAGL} + "\n", '')&lt;/STRONG&gt;&lt;/SPAN&gt; + if((selected(${Lean}, '1')), 'N. STRAIGHTEN' + "\n", '') + if((selected(${LowerTop}, '1')), 'N. LOWER POLE TOP ' + ${LowerTopDistance} + 'mm' + "\n", '') + if((selected(${PossumTrap}, '0')), 'N. FIT POSSUM GUARD' + "\n", '') + if((selected(${UGCable}, '1')), 'N. REFIT UG ' + ${UGCableVoltageCategory} + ' CABLE' + "\n", '') + if((selected(${Telco}, '1')), 'N. REFIT ' + ${TelcoOrientation} + ' TELCO' + "\n", '') + if((selected(${Trees}, 'WhenMaintained')), 'N. TRIM TREES' + "\n", '') + if((selected(${Access}, 'ContactOwner')), 'NB. CONTACT LAND OWNER FOR ACCESS: ' + ${LandOwner} + "\n", '')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have attached the xlsx form and a sample of the desired output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Roger Farmer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852086#M23766</guid>
      <dc:creator>RogerFarmer1</dc:creator>
      <dc:date>2017-11-07T22:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate text fields to output data from multiple related records?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852087#M23767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the&amp;nbsp;calculation you are trying to build across repeat records is not currently supported as we do not support indexed-repeats. We have an open enhancement request for this issue and I have added your comments and use case to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per you comments, only the fields from the repeat record that is being displayed (active) will be used in the calculation, as each repeat record has the same field name and schema, so in order to be able to identify them differently, the repeats need to be indexed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However we do currently support the following aggregate functions across repeats:&amp;nbsp;sum, count,&amp;nbsp;min, max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 06:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852087#M23767</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-11-09T06:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate text fields to output data from multiple related records?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852088#M23768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will Survey123 3.0 support&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;indexed-repeats, position() or/and join() functions ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2018 11:56:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-calculate-text-fields-to-output-data-from/m-p/852088#M23768</guid>
      <dc:creator>nejibco</dc:creator>
      <dc:date>2018-04-28T11:56:16Z</dc:date>
    </item>
  </channel>
</rss>

