<?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 show sum in cluster label in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087729#M41670</link>
    <description>&lt;P&gt;How do I get the sum not the average in my cluster label?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1628635767970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20590i00E1E291411A70EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_0-1628635767970.png" alt="forestknutsen1_0-1628635767970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 22:51:55 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2021-08-10T22:51:55Z</dc:date>
    <item>
      <title>show sum in cluster label</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087729#M41670</link>
      <description>&lt;P&gt;How do I get the sum not the average in my cluster label?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1628635767970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20590i00E1E291411A70EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_0-1628635767970.png" alt="forestknutsen1_0-1628635767970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087729#M41670</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-08-10T22:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: show sum in cluster label</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087736#M41671</link>
      <description>&lt;P&gt;I found one way to do it (line 3)... but if feels like it is not the best. I feel like I should be able to get the sum&amp;nbsp;directly:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  $feature["cluster_avg_CUSTOMERS_AFFECTED"];
  var no_feature = $feature["cluster_count"];
  var value = $feature["cluster_avg_CUSTOMERS_AFFECTED"] * no_feature;
  var num = Count(Text(Round(value)));
  var label = When(
    num &amp;lt; 4, Text(value, "#.#"),
    num == 4, Text(value / Pow(10, 3), "#.0k"),
    num &amp;lt;= 6, Text(value / Pow(10, 3), "#k"),
    num == 7, Text(value / Pow(10, 6), "#.0m"),
    num &amp;gt; 7, Text(value / Pow(10, 6), "#m"),
    Text(value, "#,###")
  );
  return label;
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 23:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087736#M41671</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-08-10T23:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: show sum in cluster label</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087968#M41677</link>
      <description>&lt;P&gt;Yep. That is one way to work around the issue for now. The problem with this, however is the size of the cluster doesn't adjust to use the sum. It still uses the average, which can lead to some really small sized clusters with larger numbers than clusters with a larger size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is something we should support. Still working on some details to help it fit with the existing API smoothly. No timeline at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 16:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1087968#M41677</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-08-11T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: show sum in cluster label</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1088128#M41686</link>
      <description>&lt;P&gt;Thanks for the feedback Kristian. Yes, the sizing issue is likely a deal breaker for me. I may not be able to use clustering at all until esri improves things.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 20:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1088128#M41686</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-08-11T20:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: show sum in cluster label</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1613387#M64688</link>
      <description>&lt;P&gt;Here is how I was able to get the sum of a field as the cluster label. You should be able to get the sum in the label by first adding a cluster field for CUSTOMERS_AFFECTED. selecting the statistic type you want. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewPadilla_1-1746816359259.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131913i74BEFE835A388CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewPadilla_1-1746816359259.png" alt="AndrewPadilla_1-1746816359259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now you can use that expression in the cluster label field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewPadilla_2-1746816411966.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131914iD63041F615BA3467/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewPadilla_2-1746816411966.png" alt="AndrewPadilla_2-1746816411966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 18:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/show-sum-in-cluster-label/m-p/1613387#M64688</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2025-05-09T18:47:43Z</dc:date>
    </item>
  </channel>
</rss>

