<?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 Arcade:  Return first five records? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1337755#M55066</link>
    <description>&lt;P&gt;Can someone give me an example Arcade expression that returns the first five (or whatever #) of records?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 15:07:41 GMT</pubDate>
    <dc:creator>ArmstKP</dc:creator>
    <dc:date>2023-10-13T15:07:41Z</dc:date>
    <item>
      <title>Arcade:  Return first five records?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1337755#M55066</link>
      <description>&lt;P&gt;Can someone give me an example Arcade expression that returns the first five (or whatever #) of records?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 15:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1337755#M55066</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-10-13T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  Return first five records?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1337765#M55067</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#top" target="_self"&gt;Top&lt;/A&gt; function to do this. The example in the documentation shows how to get the top 5 features with the highest population with the addition of the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#orderby" target="_self"&gt;OrderBy&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Top( OrderBy($layer, 'POPULATION DESC'), 5 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 15:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1337765#M55067</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-13T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  Return first five records?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1365090#M56573</link>
      <description>&lt;P&gt;I feel like I'm missing an important step I'm hoping someone can help point me in the right direction.&lt;/P&gt;&lt;P&gt;I'm using the new map viewer in ArcGIS Enterprise Version 10.9.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the expression builder for the pop up I've included code just like the above solution. I test it in the expression builder and it looks fine in that it returns the number of records&amp;nbsp; sorted the way I want.&amp;nbsp;I then save the expression.&lt;/P&gt;&lt;P&gt;When I test my change on my web maps however, the pop ups continue to show all the records not just the top ones. Should I be referencing the expression in the body of the pop up text? I tried that but it doesn't do anything, or I'm just not doing it correctly. Thank You!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoePlattner_1-1703883901005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90180iB101C061E6A41B04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoePlattner_1-1703883901005.png" alt="JoePlattner_1-1703883901005.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, 29 Dec 2023 21:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1365090#M56573</guid>
      <dc:creator>JoePlattner</dc:creator>
      <dc:date>2023-12-29T21:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  Return first five records?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1664060#M67014</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/46925"&gt;@JoePlattner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Did you get this to work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 20:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-first-five-records/m-p/1664060#M67014</guid>
      <dc:creator>LeahBowyer</dc:creator>
      <dc:date>2025-11-06T20:43:55Z</dc:date>
    </item>
  </channel>
</rss>

