<?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 Math operations with Indicator widget values in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/math-operations-with-indicator-widget-values/m-p/1080862#M41286</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is it possible to do math operations using values displayed in Indicator widgets?&lt;/P&gt;&lt;P&gt;I've thought about trying to do it using data expressions but I don't even know how to start, because all examples I've found so far only showed how to&amp;nbsp;handle data from feature layers, not widgets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've set the Indicators to retrieve data from a table which every record represents the sales from each month for each polygon.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PerfilSuporte_0-1626792910236.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18944iFC388EFD2141E571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PerfilSuporte_0-1626792910236.png" alt="PerfilSuporte_0-1626792910236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user should select the months to be compared&amp;nbsp;at the side panel and select a polygon at the map to filter the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is just simple math operations like display the difference between the two time spans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PerfilSuporte_1-1626793487296.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18945i510095198D1AFE7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PerfilSuporte_1-1626793487296.png" alt="PerfilSuporte_1-1626793487296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 15:15:13 GMT</pubDate>
    <dc:creator>PerfilSuporte</dc:creator>
    <dc:date>2021-07-20T15:15:13Z</dc:date>
    <item>
      <title>Math operations with Indicator widget values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/math-operations-with-indicator-widget-values/m-p/1080862#M41286</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is it possible to do math operations using values displayed in Indicator widgets?&lt;/P&gt;&lt;P&gt;I've thought about trying to do it using data expressions but I don't even know how to start, because all examples I've found so far only showed how to&amp;nbsp;handle data from feature layers, not widgets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've set the Indicators to retrieve data from a table which every record represents the sales from each month for each polygon.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PerfilSuporte_0-1626792910236.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18944iFC388EFD2141E571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PerfilSuporte_0-1626792910236.png" alt="PerfilSuporte_0-1626792910236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user should select the months to be compared&amp;nbsp;at the side panel and select a polygon at the map to filter the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is just simple math operations like display the difference between the two time spans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PerfilSuporte_1-1626793487296.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18945i510095198D1AFE7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PerfilSuporte_1-1626793487296.png" alt="PerfilSuporte_1-1626793487296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/math-operations-with-indicator-widget-values/m-p/1080862#M41286</guid>
      <dc:creator>PerfilSuporte</dc:creator>
      <dc:date>2021-07-20T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Math operations with Indicator widget values</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/math-operations-with-indicator-widget-values/m-p/1083070#M41411</link>
      <description>&lt;P&gt;While this is certainly possible with a Data Expression, this is simple enough that you can also use a &lt;STRONG&gt;Reference Value&lt;/STRONG&gt;. In your "After - Before" indicator, configure it so that the value and the reference are the same:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1627395636190.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19430i23F9728E523A3CB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1627395636190.png" alt="jcarlson_0-1627395636190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then in the actual text portion of the indicator, one of the predefined values you can enter is the &lt;STRONG&gt;difference&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1627395702896.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19431i223DDDD854ECC896/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1627395702896.png" alt="jcarlson_1-1627395702896.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then on your list widgets that you're using to filter the indicators, you can set the filter actions to apply to the value &lt;EM&gt;or &lt;/EM&gt;the reference. I'm using a chart instead of a list, but the idea is the same:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_2-1627396006828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19432i28A2FBEB74BD5FB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_2-1627396006828.png" alt="jcarlson_2-1627396006828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 14:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/math-operations-with-indicator-widget-values/m-p/1083070#M41411</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-27T14:26:46Z</dc:date>
    </item>
  </channel>
</rss>

