<?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 Order feature in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/order-feature/m-p/1315946#M8219</link>
    <description>&lt;P&gt;Hello everyone, in order to create diagrams to compare the values of this year with those of last year, I have written this Arcade code. However, I am unable to sort it in ascending order. Do you have any ideas?&lt;/P&gt;&lt;P&gt;var features = FeatureSetByPortalItem(&lt;BR /&gt;Portal('#####'),&lt;BR /&gt;'#####',&lt;BR /&gt;0,&lt;BR /&gt;['#####', '#####'],&lt;BR /&gt;false&lt;BR /&gt;);&lt;BR /&gt;//var aa=Filter(features,' ')&lt;/P&gt;&lt;P&gt;var current_Year = ISOYear(today());&lt;BR /&gt;var ago_Year= ISOYear(today())-1;&lt;/P&gt;&lt;P&gt;var dict = {&lt;BR /&gt;fields: [&lt;BR /&gt;{ name: "month", type: "esriFieldTypeString" },&lt;BR /&gt;{ name: "Year", type: "esriFieldTypeString" },&lt;BR /&gt;],&lt;BR /&gt;geometryType: "",&lt;BR /&gt;features: [],&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var index = 0;&lt;BR /&gt;for (var featu in features) {&lt;BR /&gt;dict.features[index] = {&lt;BR /&gt;"attributes": {&lt;BR /&gt;"month": Text(ISOMonth(featu["Date_de_clôture_technique"])),&lt;BR /&gt;"year": Text(ISOYear(featu["Date_de_clôture_technique"])),&lt;BR /&gt;}}&lt;BR /&gt;index++;}&lt;BR /&gt;console(dict)&lt;/P&gt;&lt;P&gt;var res = GroupBy(FeatureSet(Text(dict)), ['month', 'year'],&lt;BR /&gt;[{name: 'insp_by_month', expression: '1', statistic: 'COUNT'}])&lt;/P&gt;&lt;P&gt;return res&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 08:56:52 GMT</pubDate>
    <dc:creator>DéveloppeurP</dc:creator>
    <dc:date>2023-08-07T08:56:52Z</dc:date>
    <item>
      <title>Order feature</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/order-feature/m-p/1315946#M8219</link>
      <description>&lt;P&gt;Hello everyone, in order to create diagrams to compare the values of this year with those of last year, I have written this Arcade code. However, I am unable to sort it in ascending order. Do you have any ideas?&lt;/P&gt;&lt;P&gt;var features = FeatureSetByPortalItem(&lt;BR /&gt;Portal('#####'),&lt;BR /&gt;'#####',&lt;BR /&gt;0,&lt;BR /&gt;['#####', '#####'],&lt;BR /&gt;false&lt;BR /&gt;);&lt;BR /&gt;//var aa=Filter(features,' ')&lt;/P&gt;&lt;P&gt;var current_Year = ISOYear(today());&lt;BR /&gt;var ago_Year= ISOYear(today())-1;&lt;/P&gt;&lt;P&gt;var dict = {&lt;BR /&gt;fields: [&lt;BR /&gt;{ name: "month", type: "esriFieldTypeString" },&lt;BR /&gt;{ name: "Year", type: "esriFieldTypeString" },&lt;BR /&gt;],&lt;BR /&gt;geometryType: "",&lt;BR /&gt;features: [],&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var index = 0;&lt;BR /&gt;for (var featu in features) {&lt;BR /&gt;dict.features[index] = {&lt;BR /&gt;"attributes": {&lt;BR /&gt;"month": Text(ISOMonth(featu["Date_de_clôture_technique"])),&lt;BR /&gt;"year": Text(ISOYear(featu["Date_de_clôture_technique"])),&lt;BR /&gt;}}&lt;BR /&gt;index++;}&lt;BR /&gt;console(dict)&lt;/P&gt;&lt;P&gt;var res = GroupBy(FeatureSet(Text(dict)), ['month', 'year'],&lt;BR /&gt;[{name: 'insp_by_month', expression: '1', statistic: 'COUNT'}])&lt;/P&gt;&lt;P&gt;return res&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/order-feature/m-p/1315946#M8219</guid>
      <dc:creator>DéveloppeurP</dc:creator>
      <dc:date>2023-08-07T08:56:52Z</dc:date>
    </item>
  </channel>
</rss>

