<?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 Calc percentage in Operations Dashboard? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492780#M2745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:arial;"&gt;Anyone know how to a "Field Calc" in Op's Dash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;I have a filter on a Feature Service that pulls out inspections within last 30 days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;I have another filter that pulls out inspections containing the term ???inoperable???.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;Within Ops Dash how do I perform some kind of calculation between the two to get a % of inspections recorded as inoperable?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 12:02:30 GMT</pubDate>
    <dc:creator>AndrewHargreaves</dc:creator>
    <dc:date>2013-10-25T12:02:30Z</dc:date>
    <item>
      <title>Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492780#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:arial;"&gt;Anyone know how to a "Field Calc" in Op's Dash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;I have a filter on a Feature Service that pulls out inspections within last 30 days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;I have another filter that pulls out inspections containing the term ???inoperable???.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:arial;"&gt;Within Ops Dash how do I perform some kind of calculation between the two to get a % of inspections recorded as inoperable?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 12:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492780#M2745</guid>
      <dc:creator>AndrewHargreaves</dc:creator>
      <dc:date>2013-10-25T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492781#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The out-of-the-box app doesn't provide this functionality. The closest way to do it is to create 2 filters for your Inspection layer in the map/external data source config window (one for inspections with date within the last 30 days and one for inspections with names containing "inoperable"). Then you can add 2 summary widgets to the view, one showing the feature count using the "date within last 30 days " data source and one showing the count using the "name contains inoperable" data source. It is not a perfect solution, but should help you get a rough idea. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And another way to do it is to write a custom widget that takes the 2 data sources above and then do the calculation, It should be quite simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tif&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:44:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492781#M2746</guid>
      <dc:creator>TifPun</dc:creator>
      <dc:date>2013-10-25T21:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492782#M2747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question is from 2013, so you probably don't still need help, but it's the first to come up on Google when you search for this so I figure it will help someone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can show percentage in an indicator by setting your numerator - in this case inoperable inspections - to your value field, and your denominator - in this case all inspections - to your reference field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your text boxes, you can display the percent by clicking "Fields: {}" and choosing 100 * Value / Reference - {percentage}. There's more information on this at&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/operations-dashboard/help/indicator.htm" title="https://doc.arcgis.com/en/operations-dashboard/help/indicator.htm"&gt;Indicator—Operations Dashboard for ArcGIS | ArcGIS&lt;/A&gt;, including an explanation of all the other calculations that you can use within an indicator. Your percentages may show up with a lot of decimals, and you can format those by following this help:&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/operations-dashboard/help/format-numbers.htm" title="https://doc.arcgis.com/en/operations-dashboard/help/format-numbers.htm"&gt;Format numbers—Operations Dashboard for ArcGIS | ArcGIS&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help someone else who was looking for this functionality!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4785"&gt;Andrew Hargreaves&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/38607"&gt;Tif Pun&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/ops dashboard/tg-p"&gt;#ops dashboard&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/operationsdashboard/tg-p"&gt;#operationsdashboard&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/percent/tg-p"&gt;#percent&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/indicator widget/tg-p"&gt;#indicator widget&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492782#M2747</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-07T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492783#M2748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip Queen,&lt;/P&gt;&lt;P&gt;Do you know if there is a way to add the value and reference together?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. {value + reference}&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying this, but it doesn't appear to be an option.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Darryl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492783#M2748</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2019-03-06T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492784#M2749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Darryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right, it isn't an option. I tried some likely candidates like {sum} to see if there was something hidden, but with no luck. I don't even see adding calculations as an "Idea" - but I think it's a good candidate for one, as this seems like a real limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I couldn't be of more help,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492784#M2749</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-03-06T17:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492785#M2750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; Perhaps I will add it as an ArcGIS Idea. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/492785#M2750</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2019-03-06T17:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1038553#M4266</link>
      <description>&lt;P&gt;Old Post, I know.&amp;nbsp; Came across it as I was searching for a way to add the value and reference together.&amp;nbsp; Since&amp;nbsp; you can do difference you'd think sum would be also an option.&amp;nbsp; Only way I've figured it out was to add a new field that did the calculation and then use that field in my dashboard 99 indicator.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 12:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1038553#M4266</guid>
      <dc:creator>DuaneTreadon</dc:creator>
      <dc:date>2021-03-19T12:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1042724#M4299</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I found this post and figured it out!&lt;/P&gt;&lt;P&gt;ESRI should really update the user guides on this to specifically mention that you must turn on a &lt;STRONG&gt;Reference&lt;/STRONG&gt; and select &lt;STRONG&gt;Statistics&lt;/STRONG&gt; for it to show up in the &lt;STRONG&gt;Fields {}&lt;/STRONG&gt; of the Indicator. Pictures would be helpful as this feature is all &lt;U&gt;hidden&lt;/U&gt; and I will be training people at work for decades on this lol.&lt;/P&gt;&lt;P&gt;In 2021 there are &lt;U&gt;two options&lt;/U&gt; here that I know of:&lt;/P&gt;&lt;P&gt;1) Ensure that a Reference for the indicator has been set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinThompson1_1-1617242909527.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9806i13760428DF6AF4C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="KevinThompson1_1-1617242909527.png" alt="KevinThompson1_1-1617242909527.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then the options to do the calculations show up&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinThompson1_2-1617242996274.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9808i7AF7820D776C80DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinThompson1_2-1617242996274.png" alt="KevinThompson1_2-1617242996274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/dashboards/get-started/indicator.htm" target="_blank"&gt;https://doc.arcgis.com/en/dashboards/get-started/indicator.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinThompson1_3-1617243041128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9809iA805850FB21B9C3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinThompson1_3-1617243041128.png" alt="KevinThompson1_3-1617243041128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Use the &lt;STRONG&gt;Dashboards Beta&lt;/STRONG&gt; and &lt;U&gt;&lt;EM&gt;Arcade&lt;/EM&gt;&lt;/U&gt; to do this manually or follow the instructions above as the beta too supports the original method.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is some sample code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;STRONG&gt;var percentCount = Floor($datapoint.count / $reference.count * 100) &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;&lt;STRONG&gt;var yardCount = $datapoint.count&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;return {&lt;BR /&gt;//textColor:'',&lt;BR /&gt;//backgroundColor:'',&lt;BR /&gt;topText: 'Caledon',&lt;BR /&gt;topTextColor: '',&lt;BR /&gt;topTextOutlineColor: '',&lt;BR /&gt;topTextMaxSize: 'large',&lt;BR /&gt;middleText:&lt;FONT color="#00CCFF"&gt; &lt;STRONG&gt;concatenate(yardCount, ' or ', percentCount, '%')&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;BR /&gt;middleTextColor: '',&lt;BR /&gt;middleTextOutlineColor: '',&lt;BR /&gt;middleTextMaxSize: 'medium',&lt;BR /&gt;//bottomText: '',&lt;BR /&gt;//bottomTextColor: '',&lt;BR /&gt;//bottomTextOutlineColor: '',&lt;BR /&gt;//bottomTextMaxSize: 'medium',&lt;BR /&gt;//iconName:'',&lt;BR /&gt;//iconAlign:'left',&lt;BR /&gt;//iconColor:'',&lt;BR /&gt;//iconOutlineColor:'',&lt;BR /&gt;//noValue:false,&lt;BR /&gt;//attributes: {&lt;BR /&gt;// attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 02:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1042724#M4299</guid>
      <dc:creator>Kevin_Thompson</dc:creator>
      <dc:date>2021-04-01T02:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calc percentage in Operations Dashboard?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1154659#M5988</link>
      <description>&lt;P&gt;I have been told this was not possible by my local ESRI distributor and they suggested a full custom app would be required to divide two numbers and display the result in a widget.&amp;nbsp;&amp;nbsp;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221598"&gt;@Kevin_Thompson&lt;/a&gt; for giving me the free out of the box solution.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 10:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calc-percentage-in-operations-dashboard/m-p/1154659#M5988</guid>
      <dc:creator>Michael_Kraus</dc:creator>
      <dc:date>2022-03-17T10:04:34Z</dc:date>
    </item>
  </channel>
</rss>

