<?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: Conditional choice filtering through multiple cascades in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831318#M18517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to have attached. Try this.&amp;nbsp;&lt;A class="link-titled" href="https://drive.google.com/file/d/1c4ZpzkIoJ_mA-W7yw_vkHLr5-scYaver/view?usp=sharing" title="https://drive.google.com/file/d/1c4ZpzkIoJ_mA-W7yw_vkHLr5-scYaver/view?usp=sharing"&gt;Test_v1.xlsx - Google Drive&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2020 21:50:45 GMT</pubDate>
    <dc:creator>AliciaRitzenthaler</dc:creator>
    <dc:date>2020-08-13T21:50:45Z</dc:date>
    <item>
      <title>Conditional choice filtering through multiple cascades</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831315#M18514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to created a series of 3 questions asking survey respondents to "rank" their top 3 choices from a list. I want to prevent respondents from selecting the same choice for multiple ranks. However, I want to include 'other' as an option&amp;nbsp;every time. How do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the choice filter field I am able remove already selecting options from subsequent ranks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank 1 selection: A&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank 2 choice filter: not(selected(${rank1},name)#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rank 2 choices: B, C, D, E, Other&lt;/P&gt;&lt;P&gt;Rank 2 selection: C&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank 3 choice filter: &lt;SPAN&gt;(not(selected(${rank1},name)))&amp;nbsp;and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(not(selected(${rank2},name)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank 3 choices: B, D, E, Other&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can get this approach (&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/thread/208523"&gt;or_other and choice_filter&lt;/A&gt;) to work for Rank 2 but I can't seem to apply it to a third 'cascade'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;How do I do this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 18:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831315#M18514</guid>
      <dc:creator>AliciaRitzenthaler</dc:creator>
      <dc:date>2020-08-10T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional choice filtering through multiple cascades</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831316#M18515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alicia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a copy of your xlsx file so we can take a closer look. Are you using select one or select multiple question types?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that with 3.10 and previous releases choice filters only work for select one questions. We are currently working on development for 3.11, and will introduce choice filters to work on select multiple questions, which I believe it what you will require based on your example above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep an eye out for the 3.11 beta updates on the &lt;A href="https://earlyadopter.esri.com/project/home.html?cap=e69ef91f45744b98882c651f7b518eb7"&gt;Early Adopter Community&lt;/A&gt; if you would like to test this out once it is available.&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>Wed, 12 Aug 2020 00:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831316#M18515</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-12T00:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional choice filtering through multiple cascades</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831317#M18516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Rank your choice questions is in theory how I want this to work...except I'd like 'other' to appear each time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Choose your favorite questions I attempt a different (failed) approach to accomplish the same goal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a third possible solution I'm 100% okay with added some calculated, read-me field which calculate "does rank 1 = rank 2? If so bad. And setting a constraint so that 'bad' is not an acceptable answer and you must revise rank 1 or 2. Survey 123 won't see to read a nested if statement though (if ${rank3}=${rank1},'bad', if(${rank3}=${rank2},'bad', 'good') in the calculation field....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 21:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831317#M18516</guid>
      <dc:creator>AliciaRitzenthaler</dc:creator>
      <dc:date>2020-08-13T21:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional choice filtering through multiple cascades</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831318#M18517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to have attached. Try this.&amp;nbsp;&lt;A class="link-titled" href="https://drive.google.com/file/d/1c4ZpzkIoJ_mA-W7yw_vkHLr5-scYaver/view?usp=sharing" title="https://drive.google.com/file/d/1c4ZpzkIoJ_mA-W7yw_vkHLr5-scYaver/view?usp=sharing"&gt;Test_v1.xlsx - Google Drive&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 21:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831318#M18517</guid>
      <dc:creator>AliciaRitzenthaler</dc:creator>
      <dc:date>2020-08-13T21:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional choice filtering through multiple cascades</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831319#M18518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alicia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in getting back to you, it has been a busy week. I had a look at the Test_v1.xslx file you provided and the example in the calculation field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nested "if" statements are supported in all calculation and expression fields, the issue is that you are trying to use an "or" statement in the calculation with multiple "if" statements. This is not a nested "if" statement and will not work due to the "or" operator. Also in your example in above post, the location of brackets is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct nested "if" statement format to use is as follows, as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;if(${test3}=${test1},'bad',if(${test3}=${test2},'bad',if(${test1}=${test2},'bad','good')))‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you prefer, to make it easier to read, you can break it out onto different lines and tabs for each component of the "if" statement, and if you use NotePad++ or similar IDE, you can check the formatting and brackets as you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;if(${test3}=${test1}
	,'bad'
		,if(${test3}=${test2}
			,'bad'
				,if(${test1}=${test2}
					,'bad'
						,'good'
					)
			)
	)‍‍‍‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, if any of the "test" fields equal another "test" field, the value returned is "bad", but if none of them match, the value returned is "good".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, and it should work well for your use case, we see many other customers using nested "if" statements in this way.&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>Sun, 12 Dec 2021 10:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-choice-filtering-through-multiple/m-p/831319#M18518</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:02:36Z</dc:date>
    </item>
  </channel>
</rss>

