<?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 Data Consistency with wide range of values in Survey123 and Dashboard in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1041945#M33508</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a survey that feeds into a Dashboard for Events that are occurring in our Recreation and Parks department. On the dashboard, one of the selectors is "Age Group." Within the survey, the "Age Group" is formatted as a text question. Staff enter age group as "7-12" etc. I instruct staff in the survey to only use numbers but staff still type more than necessary sometimes.&lt;/P&gt;&lt;P&gt;I am trying to get staff to not enter any text (such as "years" or "years old" as seen in the picture attached) but can't use predefined answers due to the age groups being so different for each type of event. At the same time, "All Ages" must still be an option to enter.&lt;/P&gt;&lt;P&gt;Do you all have any suggestions on how I can maintain data consistency in Survey123 when staff enter in the Age Group while still being able to use Age Group as a category selector in the dashboard?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 14:30:33 GMT</pubDate>
    <dc:creator>JoshBillings</dc:creator>
    <dc:date>2021-03-30T14:30:33Z</dc:date>
    <item>
      <title>Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1041945#M33508</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a survey that feeds into a Dashboard for Events that are occurring in our Recreation and Parks department. On the dashboard, one of the selectors is "Age Group." Within the survey, the "Age Group" is formatted as a text question. Staff enter age group as "7-12" etc. I instruct staff in the survey to only use numbers but staff still type more than necessary sometimes.&lt;/P&gt;&lt;P&gt;I am trying to get staff to not enter any text (such as "years" or "years old" as seen in the picture attached) but can't use predefined answers due to the age groups being so different for each type of event. At the same time, "All Ages" must still be an option to enter.&lt;/P&gt;&lt;P&gt;Do you all have any suggestions on how I can maintain data consistency in Survey123 when staff enter in the Age Group while still being able to use Age Group as a category selector in the dashboard?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 14:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1041945#M33508</guid>
      <dc:creator>JoshBillings</dc:creator>
      <dc:date>2021-03-30T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1041972#M33510</link>
      <description>&lt;P&gt;Take a look at input masks&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/esricustomcolumns.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/esricustomcolumns.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also a list would work if you have set groups.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1041972#M33510</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-03-30T15:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042258#M33534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/26942"&gt;@JoshBillings&lt;/a&gt;&amp;nbsp;in addition to Doug's suggestions, one other option could be to have two integer questions where staff can enter min &amp;amp; max ages, then have a hidden text question that concatenates these into an age range string, e.g. "7 - 12". You could precede this with a select_one that has two choices, e.g. "All ages" or "Specific age range", with the min/max integer questions relevant based on the selection. You could then use an if() statement in the hidden text question to set the string to "All ages" or the concatenated age range.&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 01:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042258#M33534</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-03-31T01:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042472#M33548</link>
      <description>&lt;P&gt;Yes &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;&amp;nbsp;, this would work great!&lt;/P&gt;&lt;P&gt;I am running into an issue when I publish it though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Survey123 Connect, everything seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoshuaBillings_0-1617208050287.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9746i3DF20C13C0358AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoshuaBillings_0-1617208050287.png" alt="JoshuaBillings_0-1617208050287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I publish this, the Minimum and Maximum Age selections don't show up when Specific Range is selected. Any idea why this could be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoshuaBillings_1-1617208124055.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9747iD1B9C3A3FEDE6FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoshuaBillings_1-1617208124055.png" alt="JoshuaBillings_1-1617208124055.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Wed, 31 Mar 2021 16:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042472#M33548</guid>
      <dc:creator>JoshBillings</dc:creator>
      <dc:date>2021-03-31T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042695#M33562</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/26942"&gt;@JoshBillings&lt;/a&gt;&amp;nbsp;thanks for the screenshots. Not sure what's causing the NaN error in the web app without seeing your XLSForm, but please see example survey attached demonstrating one way to set up the questions. The calculation for age group uses the if() and concat() functions to return the formatted age range.&lt;/P&gt;&lt;P&gt;If you don't want to store the min/max age fields in the feature layer you could set bind::esri:fieldType to &lt;EM&gt;null&lt;/EM&gt; for these questions.&lt;/P&gt;&lt;P&gt;Hope this helps! Best, Jim&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 00:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1042695#M33562</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-04-01T00:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1043763#M33645</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;! My error was in the "relevant" field. This works!&lt;/P&gt;&lt;P&gt;One final thing. I would like my Age Groups to be able to sort based on number value. Because I have text in my Age Groups (ie. 18 and over, All Ages), the field is a text field and is sorting it like text. Any work around for this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoshuaBillings_0-1617627024620.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10079i93F66A40E5D54D0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoshuaBillings_0-1617627024620.png" alt="JoshuaBillings_0-1617627024620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 12:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1043763#M33645</guid>
      <dc:creator>JoshBillings</dc:creator>
      <dc:date>2021-04-05T12:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Consistency with wide range of values in Survey123 and Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1044905#M33716</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/26942"&gt;@JoshBillings&lt;/a&gt;&amp;nbsp;one way to overcome this would be to pad the single-digit minimum ages with a zero, so for example 5-18 would be stored as "05-18". You could build this into the calculation using a nested if() statement to add a leading zero if the minimum age is greater than zero and less than 10, for example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if(${age_group}='all_ages', 'All ages', if(${min_age} &amp;gt; 0 and ${min_age} &amp;lt; 10, concat(0, ${min_age},' - ',${max_age}), concat(${min_age},' - ',${max_age})))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This should sort the values correctly in your dashboard; if you want to remove the leading zeroes it looks like you could then use the Load Categories setting for the category selector to modify the labels for each age group individually.&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 23:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-consistency-with-wide-range-of-values-in/m-p/1044905#M33716</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-04-07T23:11:33Z</dc:date>
    </item>
  </channel>
</rss>

