<?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: Perform query and lookup/cross-reference against a range of values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833602#M19012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siew Wei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use pulldata to do this (kind of.....). Pulldata can only do a lookup against a single field in the .csv (not multiple fields), so you will need to create a new version of the .csv that contains a concatenated version of columns B, C, D. The .csv would need to contain rows for all possible combinations of B, C and D - and this is the bit that may be a showstopper for you as you are dealing with lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g of concatenated string:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20_80_AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the pull data function in S123 would look something like the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: bold;"&gt;&lt;STRONG&gt;pulldata(&amp;lt;csvfile&amp;gt;, &amp;lt;returnColumn&amp;gt;, &amp;lt;lookupColumn&amp;gt;, &amp;lt;lookupValue&amp;gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;lookupValue&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;would be populated with a concat statement that would combine the results of the appropriate questions e.g.:&lt;/P&gt;&lt;P&gt;concat(${Start},'_',${End}, '&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN&gt;',${&lt;/SPAN&gt;&lt;SPAN&gt;Line&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2017 01:23:28 GMT</pubDate>
    <dc:creator>JohnathanHasthorpe</dc:creator>
    <dc:date>2017-11-06T01:23:28Z</dc:date>
    <item>
      <title>Perform query and lookup/cross-reference against a range of values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833601#M19011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am setting up my form with pre-filled data. One of these fields need to be automatically populated depends on selection from previous question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I have Stations at xx km location along a specific line, I want to be able to query against more than just one column from the CSV dataset.&amp;nbsp; I am not sure of how to combine pulldata with IF and AND functions or to query a number between a range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of the dataset and the results I want to be returned... Say my CSV dataset contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382607_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have stations which are at measured kms along its specific line, I want to be able to return the value from Column E based on the criteria that satisfy columns B, C and D above.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/382609_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can this be performed&amp;nbsp;in the XLS form?&lt;/P&gt;&lt;P&gt;The alternative is using Cascading Select, which is not exactly ideal.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;SW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 11:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833601#M19011</guid>
      <dc:creator>Siew_WeiGoh2</dc:creator>
      <dc:date>2017-11-04T11:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query and lookup/cross-reference against a range of values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833602#M19012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siew Wei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use pulldata to do this (kind of.....). Pulldata can only do a lookup against a single field in the .csv (not multiple fields), so you will need to create a new version of the .csv that contains a concatenated version of columns B, C, D. The .csv would need to contain rows for all possible combinations of B, C and D - and this is the bit that may be a showstopper for you as you are dealing with lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g of concatenated string:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20_80_AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the pull data function in S123 would look something like the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: bold;"&gt;&lt;STRONG&gt;pulldata(&amp;lt;csvfile&amp;gt;, &amp;lt;returnColumn&amp;gt;, &amp;lt;lookupColumn&amp;gt;, &amp;lt;lookupValue&amp;gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;lookupValue&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;would be populated with a concat statement that would combine the results of the appropriate questions e.g.:&lt;/P&gt;&lt;P&gt;concat(${Start},'_',${End}, '&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN&gt;',${&lt;/SPAN&gt;&lt;SPAN&gt;Line&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 01:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833602#M19012</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2017-11-06T01:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query and lookup/cross-reference against a range of values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833603#M19013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a combinations of B,C and D is one way of creating a unique entry. However, how is it going to work when my asset falls between the Start and End of the concatenated field? Will this string be able to query a number between a range of values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, if I have asset sitting at 30.5, how would it be able to recognize that “20_80_AAA” is the referred pulldata, rather that returning the first entry which would be incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;SW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 01:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833603#M19013</guid>
      <dc:creator>Siew_WeiGoh2</dc:creator>
      <dc:date>2017-11-06T01:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query and lookup/cross-reference against a range of values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833604#M19014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My description above would not account for ranges - and that is why it is not ideal.&amp;nbsp;Another option would be to use if statements to assign the correct ID. Could you share your data with me and I can see whether this option would be viable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 03:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833604#M19014</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2017-11-06T03:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perform query and lookup/cross-reference against a range of values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833605#M19015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John. Will email you directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 03:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/perform-query-and-lookup-cross-reference-against-a/m-p/833605#M19015</guid>
      <dc:creator>Siew_WeiGoh2</dc:creator>
      <dc:date>2017-11-06T03:37:52Z</dc:date>
    </item>
  </channel>
</rss>

