<?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 Category selector &amp;gt; defined values &amp;gt; Integer - How to call this in an indicator widget used advanced formatting in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/category-selector-gt-defined-values-gt-integer-how/m-p/1200162#M6654</link>
    <description>&lt;P&gt;Hi Dashboarders,&lt;/P&gt;&lt;P&gt;I've created a category selector that looks at years into the future (below).&lt;/P&gt;&lt;P&gt;Based off of the year the user selects, I want to run a little calculation. For example, if year = 10 and species = x, output new values. This will run for only 5-10 of the features in the service. First half of the calculation is shown below.&lt;/P&gt;&lt;P&gt;Is this possible? If not, is there a way to work around this? The years into the future question/action happens at the dashboard level, not written into the attribute prior to the dashboard, so I can't run the calculation in Edit/forms/calculated expressions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lindsay_0-1659820809850.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47979i949847D6F8E70C2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lindsay_0-1659820809850.png" alt="Lindsay_0-1659820809850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var futureyearsfilter = the Integer Selector Years into the Future
//How/what do I call this? in the dashboard
var regionage = $datapoint["FF_Region_Age"]

var primaryspecies = !IsEmpty(regionage)
var newagevalue = When(
    futureyearsfilter = 0, regionage,
    futureyearsfilter = 10, regionage+10,
    futureyearsfilter = 20, regionage+20,
    futureyearsfilter = 30, regionage+30,
    '')
    
return newagevalue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Aug 2022 21:26:10 GMT</pubDate>
    <dc:creator>Lindsay</dc:creator>
    <dc:date>2022-08-06T21:26:10Z</dc:date>
    <item>
      <title>Category selector &gt; defined values &gt; Integer - How to call this in an indicator widget used advanced formatting</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/category-selector-gt-defined-values-gt-integer-how/m-p/1200162#M6654</link>
      <description>&lt;P&gt;Hi Dashboarders,&lt;/P&gt;&lt;P&gt;I've created a category selector that looks at years into the future (below).&lt;/P&gt;&lt;P&gt;Based off of the year the user selects, I want to run a little calculation. For example, if year = 10 and species = x, output new values. This will run for only 5-10 of the features in the service. First half of the calculation is shown below.&lt;/P&gt;&lt;P&gt;Is this possible? If not, is there a way to work around this? The years into the future question/action happens at the dashboard level, not written into the attribute prior to the dashboard, so I can't run the calculation in Edit/forms/calculated expressions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lindsay_0-1659820809850.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47979i949847D6F8E70C2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lindsay_0-1659820809850.png" alt="Lindsay_0-1659820809850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var futureyearsfilter = the Integer Selector Years into the Future
//How/what do I call this? in the dashboard
var regionage = $datapoint["FF_Region_Age"]

var primaryspecies = !IsEmpty(regionage)
var newagevalue = When(
    futureyearsfilter = 0, regionage,
    futureyearsfilter = 10, regionage+10,
    futureyearsfilter = 20, regionage+20,
    futureyearsfilter = 30, regionage+30,
    '')
    
return newagevalue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 21:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/category-selector-gt-defined-values-gt-integer-how/m-p/1200162#M6654</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-06T21:26:10Z</dc:date>
    </item>
  </channel>
</rss>

