<?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 Using Arcade to Compare and Rank Features in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-compare-and-rank-features/m-p/1688977#M68098</link>
    <description>&lt;P&gt;So I feel like this is something I should have been able to figure out but I am terrible with Arcade. I have a feature layer that contains ACS data. I would like the pop-up to be configured so that, when I select a census tract, I can see how that tract compares to others. For example, click on Census track 12 and see that, out of 25 tracts, it ranks #1 for homes without broadband. Part of my pop-up Arcade figures out the percentage of households without internet out of total households for the census tract but I can't get it to compare that to all the other features and return its rank for that. I've tried to set up arrays but none of them worked so I did not include them in this snippet.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var householdNoInternet = $feature.InternetComputerUsage_ACSNONET;
var totalHouseholds = $feature.TotalHouseholds;
var internetRatio = householdNoInternet / totalHouseholds;
var accessrank = $feature.INDEX_RANK;   //different rank than what I am looking for
var locationName = $feature.Name;
var html = "&amp;lt;b&amp;gt;&amp;lt;h2&amp;gt;" + locationName + "&amp;lt;/h2&amp;gt;&amp;lt;/b&amp;gt;";
html += "&amp;lt;b&amp;gt;&amp;lt;h3&amp;gt;Access Ranking: " + Text(accessrank) + " out of 25&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;"
html += "&amp;lt;br&amp;gt;&amp;lt;h5&amp;gt;Households with No Internet: &amp;lt;/h5&amp;gt;" +
Text(Round(householdNoInternet)) +
" out of " +
Text(Round(totalHouseholds));
html += "&amp;lt;br&amp;gt;Percentage: " + Text(Round(internetRatio * 100, 1)) + "%";
html += "&amp;lt;br&amp;gt;Rank "+ Text(index) + " out of 25";   //rank of individual element I am trying to calculate
return { type: "text", text: html };/* &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2026 15:00:28 GMT</pubDate>
    <dc:creator>OliviaE</dc:creator>
    <dc:date>2026-03-06T15:00:28Z</dc:date>
    <item>
      <title>Using Arcade to Compare and Rank Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-compare-and-rank-features/m-p/1688977#M68098</link>
      <description>&lt;P&gt;So I feel like this is something I should have been able to figure out but I am terrible with Arcade. I have a feature layer that contains ACS data. I would like the pop-up to be configured so that, when I select a census tract, I can see how that tract compares to others. For example, click on Census track 12 and see that, out of 25 tracts, it ranks #1 for homes without broadband. Part of my pop-up Arcade figures out the percentage of households without internet out of total households for the census tract but I can't get it to compare that to all the other features and return its rank for that. I've tried to set up arrays but none of them worked so I did not include them in this snippet.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var householdNoInternet = $feature.InternetComputerUsage_ACSNONET;
var totalHouseholds = $feature.TotalHouseholds;
var internetRatio = householdNoInternet / totalHouseholds;
var accessrank = $feature.INDEX_RANK;   //different rank than what I am looking for
var locationName = $feature.Name;
var html = "&amp;lt;b&amp;gt;&amp;lt;h2&amp;gt;" + locationName + "&amp;lt;/h2&amp;gt;&amp;lt;/b&amp;gt;";
html += "&amp;lt;b&amp;gt;&amp;lt;h3&amp;gt;Access Ranking: " + Text(accessrank) + " out of 25&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;"
html += "&amp;lt;br&amp;gt;&amp;lt;h5&amp;gt;Households with No Internet: &amp;lt;/h5&amp;gt;" +
Text(Round(householdNoInternet)) +
" out of " +
Text(Round(totalHouseholds));
html += "&amp;lt;br&amp;gt;Percentage: " + Text(Round(internetRatio * 100, 1)) + "%";
html += "&amp;lt;br&amp;gt;Rank "+ Text(index) + " out of 25";   //rank of individual element I am trying to calculate
return { type: "text", text: html };/* &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 15:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-compare-and-rank-features/m-p/1688977#M68098</guid>
      <dc:creator>OliviaE</dc:creator>
      <dc:date>2026-03-06T15:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to Compare and Rank Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-compare-and-rank-features/m-p/1689370#M68129</link>
      <description>&lt;P&gt;How would you determine which 25 tracts to use? Is your dataset only those 25 tracts?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 14:27:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-compare-and-rank-features/m-p/1689370#M68129</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2026-03-09T14:27:57Z</dc:date>
    </item>
  </channel>
</rss>

