<?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: Value conversion in a dashboard pie chart? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/value-conversion-in-a-dashboard-pie-chart/m-p/1546240#M10368</link>
    <description>&lt;P&gt;You'd need to use a data expression for this, which is frankly a bit of overkill just to show the values multiplied by that decimal. But I don't see another way of doing it, so here's what it'd look like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get your layer
var fs = FeatureSetByPortalItem(
  Portal('https://arcgis.com'), //or your portal URL if you're not using AGOL
  'itemid of the feature service',
  0, // the layer index
  ['Calc_Length', 'objectid'],
  false
)

return Distinct(
  fs,
  [
    {name: 'objectid', expression: 'objectid'},
    {name: 'miles', expression: 'Calc_Length * 0.00018939'}
  ]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2024 17:53:54 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-10-07T17:53:54Z</dc:date>
    <item>
      <title>Value conversion in a dashboard pie chart?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/value-conversion-in-a-dashboard-pie-chart/m-p/1546233#M10367</link>
      <description>&lt;P&gt;Does anyone know to set up a value conversion in a pie chart? I know we can do this easily for indicators and gauges, but that I might need to use a data expression for the pie chart. I have no idea how to set that up.&lt;/P&gt;&lt;P&gt;I have a field called Calc_Length and it is in feet, but I need to convert it to miles for my pie chart.&lt;/P&gt;&lt;P&gt;I know that I need to multiple my Calc_Length by&amp;nbsp;0.00018939 to get it in miles.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/value-conversion-in-a-dashboard-pie-chart/m-p/1546233#M10367</guid>
      <dc:creator>hannahisreeding</dc:creator>
      <dc:date>2024-10-07T17:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Value conversion in a dashboard pie chart?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/value-conversion-in-a-dashboard-pie-chart/m-p/1546240#M10368</link>
      <description>&lt;P&gt;You'd need to use a data expression for this, which is frankly a bit of overkill just to show the values multiplied by that decimal. But I don't see another way of doing it, so here's what it'd look like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get your layer
var fs = FeatureSetByPortalItem(
  Portal('https://arcgis.com'), //or your portal URL if you're not using AGOL
  'itemid of the feature service',
  0, // the layer index
  ['Calc_Length', 'objectid'],
  false
)

return Distinct(
  fs,
  [
    {name: 'objectid', expression: 'objectid'},
    {name: 'miles', expression: 'Calc_Length * 0.00018939'}
  ]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/value-conversion-in-a-dashboard-pie-chart/m-p/1546240#M10368</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-10-07T17:53:54Z</dc:date>
    </item>
  </channel>
</rss>

