<?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 Re: no thousands separators in Table Attribute when using Arcade expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/no-thousands-separators-in-table-attribute-when/m-p/1488339#M84382</link>
    <description>&lt;P&gt;Unfortunately, Arcade doesn't support this directly (yet!) but you can do it manually with a find and replace. Here's some sample code from @JohannesLinder&amp;nbsp;is in this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-label-dynamic-text-with-thousands-separator/td-p/1109146" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/arcade-label-dynamic-text-with-thousands-separator/td-p/1109146&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var value = 1234567890 / 1000
var x = Text(value, "#,###.0")
var pat_rep = [[".", ";"], [",", "."], [";", ","]]
for (var i in pat_rep) {
    x = Replace(x, pat_rep[i][0], pat_rep[i][1])
}
return x + " kt"

// 1.234.567,9 kt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp; the delimiter and decimal place options are disabled in the window when using an expression because they only apply to numeric data, and there is no guarantee when using an expression that a number will be the output. So you have to control those within the expression instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 16:40:43 GMT</pubDate>
    <dc:creator>AubriOtis</dc:creator>
    <dc:date>2024-06-10T16:40:43Z</dc:date>
    <item>
      <title>no thousands separators in Table Attribute when using Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/no-thousands-separators-in-table-attribute-when/m-p/1488237#M84368</link>
      <description>&lt;P&gt;Pro 3.3.0&lt;/P&gt;&lt;P&gt;When inserting a Table Attribute in my layout I can choose to display a Thousands Separator when displaying a field (left) but when I compose an expression this choice disappears (right)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BertKraan1_0-1718025198822.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106616i10AEE80A2070EDF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BertKraan1_0-1718025198822.png" alt="BertKraan1_0-1718025198822.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BertKraan1_1-1718025220417.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106617iA02FE9A9EBFB7B0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BertKraan1_1-1718025220417.png" alt="BertKraan1_1-1718025220417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to have a separator AND use an expression?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have for example a surface of&amp;nbsp;&lt;STRONG&gt;2243&lt;/STRONG&gt;&amp;nbsp;in a table which I would like to display as &lt;STRONG&gt;2.234 ha&lt;/STRONG&gt;. At the moment it displays either &lt;STRONG&gt;2.234&lt;/STRONG&gt; or &lt;STRONG&gt;2234 ha&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding the separator in Arcade using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080"&gt;Text($feature.surface, '###,###')&lt;/FONT&gt;&lt;/STRONG&gt; and that does work but displays a comma &lt;STRONG&gt;2,234&lt;/STRONG&gt; where we would use a colon in the Netherlands. My locale is set correct (in Windows)&lt;/P&gt;&lt;P&gt;When using&amp;nbsp;&lt;FONT color="#008080"&gt;&lt;STRONG&gt;Text($feature.surface, '###&lt;FONT color="#FF0000"&gt;.&lt;/FONT&gt;###')&lt;/STRONG&gt;&lt;FONT color="#000000"&gt; (with a colon) the colon is ignored.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated, thanks for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/no-thousands-separators-in-table-attribute-when/m-p/1488237#M84368</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2024-06-10T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: no thousands separators in Table Attribute when using Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/no-thousands-separators-in-table-attribute-when/m-p/1488339#M84382</link>
      <description>&lt;P&gt;Unfortunately, Arcade doesn't support this directly (yet!) but you can do it manually with a find and replace. Here's some sample code from @JohannesLinder&amp;nbsp;is in this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-label-dynamic-text-with-thousands-separator/td-p/1109146" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/arcade-label-dynamic-text-with-thousands-separator/td-p/1109146&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var value = 1234567890 / 1000
var x = Text(value, "#,###.0")
var pat_rep = [[".", ";"], [",", "."], [";", ","]]
for (var i in pat_rep) {
    x = Replace(x, pat_rep[i][0], pat_rep[i][1])
}
return x + " kt"

// 1.234.567,9 kt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp; the delimiter and decimal place options are disabled in the window when using an expression because they only apply to numeric data, and there is no guarantee when using an expression that a number will be the output. So you have to control those within the expression instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 16:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/no-thousands-separators-in-table-attribute-when/m-p/1488339#M84382</guid>
      <dc:creator>AubriOtis</dc:creator>
      <dc:date>2024-06-10T16:40:43Z</dc:date>
    </item>
  </channel>
</rss>

