<?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: Aggregate Multiple Yes No Fields into Pie Chart in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1318819#M8315</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was pulled away for wildfires in our area and had to put this down for a little while. After revisiting this and getting more eyes on it we discovered why the numbers weren't lining up! It wasn't the expression, that is working perfectly and I marked Josh's solution as the answer for this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "wrench in the cog" was a service overwrite that happened after the expression was put in place, both the item ID and the layer order was changed. So instead of being "Item ID Some Number (19)", it became "ItemID Some other number (2)"&amp;nbsp;After updating the expression the correct numbers are now showing.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Thanks so much for your patience and your help with this!! I was so buried in the weeds I couldn't see the answer right in front of my nose.&lt;/P&gt;&lt;P&gt;Caitlin&lt;/P&gt;&lt;P&gt;Lane Co. GIS&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 18:08:23 GMT</pubDate>
    <dc:creator>Caitlin_Todd_LCOR</dc:creator>
    <dc:date>2023-08-15T18:08:23Z</dc:date>
    <item>
      <title>Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317498#M8275</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm likely overthinking this. I have a hosted feature layer of crash incidents that contains multiple Yes/No fields to record what was involved that could've led to the crash. I have a request to make a dashboard of this information using a Pie Chart to show a count of each "effect" involved in crash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, in some cases there are many "effects" with a Yes. An example of what the table looks like is below.&lt;/P&gt;&lt;TABLE border="1" width="70%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;alcohol&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;animal&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;fixed object&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;motorcycle&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;N&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My end result would be a cumulative tally of "Y" for each category of effects.&lt;/P&gt;&lt;P&gt;So the pie chart category would be the field name and the value would be a count of "Y". Something like:&lt;/P&gt;&lt;TABLE border="1" width="50"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Category&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;alcohol&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;animal&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;motorcycle&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So where a crash involved multiple "effects" each "Y" would increase the count for their respective "effect" category.&lt;/P&gt;&lt;P&gt;My expression so far looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// set portal variable and the feature set 
var p = Portal('portalURL');
var fs = FeatureSetByPortalItem(p,'ItemID',19,['OBJECTID','alc_inv','drug_inv','marij_inv','off_road','head_on','fixed_obj','animal'],false);

//filter fs to where any of effect is "Y"
var sql = `alc_inv = 'Y'OR drug_inv = 'Y'OR marij_inv='Y' OR off_road='Y'OR head_on = 'Y' OR fixed_obj='Y' OR animal='Y'`;
var flt = Filter(fs, sql);

// define the output dict
var out_fs = {
    geometryType: "",
    fields: [
        {name: "count", type: "esriFieldTypeInteger"},
        {name: "category", type:"esriFieldTypeString"}
    ],
    features: []
}
var index = 0; 

// Loop and store attributes 
for (var f in fs) { 
  //get the field names from the filtered schema
  var schary = Schema(flt);
  var ary = schary['fields'];

  out_fs.features[index] = { 
   'attributes': {  
      'count': f['OBJECTID'], 
      'category':ary['name']
    }
  }
  for (var j in ary) {
      if([ary[j]['name']]=='Y' &amp;amp;&amp;amp; ary[j]['name'] !='OBJECTID_1' ||ary[j]['name'] !='OBJECTID'){
        Push(out_fs.category,ary[j]['name'])}}
   
  index++;}
var fs_dict = FeatureSet(Text(out_fs));
return fs_dict&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't been lucky enough to find other questions with this particular issue, but there has to be a better way to write this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I greatly appreciate any and all help!&lt;/P&gt;&lt;P&gt;Caitlin T&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lane County, OR GIS&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 16:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317498#M8275</guid>
      <dc:creator>Caitlin_Todd_LCOR</dc:creator>
      <dc:date>2023-08-10T16:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317552#M8276</link>
      <description>&lt;P&gt;It looks like things are getting a little mixed up in the &lt;STRONG&gt;push&lt;/STRONG&gt; functions. You're trying to push something into &lt;STRONG&gt;out_fs.category&lt;/STRONG&gt;, but your out_fs doesn't actually have that as an array you can push into.&lt;/P&gt;&lt;P&gt;All you need is a featureset with "type", and the pie chart can aggregate everything for you. You are on the right track just iterating through the attributes, but when you have a feature, you can do that by using&amp;nbsp;&lt;STRONG&gt;for (var attr in your_feature)&lt;/STRONG&gt;. And if we only ask for the fields we care about, you can just have a simple check for 'Y' and push that. Try this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// set portal variable and the feature set 
var p = Portal('portalURL');
var fs = FeatureSetByPortalItem(
  p,
  'ItemID',
  19,
  ['alc_inv','drug_inv','marij_inv','off_road','head_on','fixed_obj','animal'],
  false
);

//filter fs to where any of effect is "Y"
var sql = `alc_inv = 'Y' OR drug_inv = 'Y' OR marij_inv='Y' OR off_road='Y' OR head_on = 'Y' OR fixed_obj='Y' OR animal='Y'`;
var flt = Filter(fs, sql);

// define the output dict
var out_fs = {
    geometryType: "",
    fields: [{name: "category", type:"esriFieldTypeString"}],
    features: []
}

// Loop and store attributes 
for (var f in fs) { 
  // iterate over fields
  for (var att in f){
    if (f[att] == 'Y') {
      Push(
        out_fs['features'],
        { attributes: { category: att } }
      )
    }
  }
}

var fs_dict = FeatureSet(Text(out_fs));
return fs_dict&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When you get the output, just tell the pie chart to do &lt;STRONG&gt;Grouped Values&lt;/STRONG&gt; based on the category field, and use the statistic &lt;STRONG&gt;Count&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 18:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317552#M8276</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-08-10T18:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317667#M8279</link>
      <description>&lt;P&gt;Hi Josh!&lt;/P&gt;&lt;P&gt;Thank you for helping me out with this. My brain is trying to do gymnastics and I'm definitely overthinking.&amp;nbsp; I compared the final count from the expression with a series of Select by Attribute in ArcGIS Pro on each field to get a true count.&lt;/P&gt;&lt;P&gt;While I do get a result with the expression you provided, the final count of each category is off by a few. Each final count is less than the true count I got from Pro by different amounts.&lt;/P&gt;&lt;P&gt;I double-checked the data to ensure there's no hidden spaces or typos anywhere in the original hosted feature layer so it's not because of that..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this section of the expression push out every attribute that equals "Y" in a single row? For example, say Alcohol, Animal, and Fixed Object are "Y" in one row. Are three rows created in the out_fs or just one for the first "Y" it found?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Loop and store attributes
for (var f in flt) {
  // iterate over fields
  for (var att in f){
    if (f[att] == 'Y') {
      Push(
        out_fs['features'],
        { attributes: { category: att } }
      )
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Just trying to think through what the potential reasons could be for the final count to be less than the true count&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Caitlin&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Aug 2023 20:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317667#M8279</guid>
      <dc:creator>Caitlin_Todd_LCOR</dc:creator>
      <dc:date>2023-08-10T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317712#M8281</link>
      <description>&lt;P&gt;Correct, if all three categories were 'Y', then three entries are made in the output. How much are the amounts off?&lt;/P&gt;&lt;P&gt;If you're trying to understand how and why an expression is behaving strangely, it's a good idea to add &lt;STRONG&gt;Console&lt;/STRONG&gt; statements in your expression. Like &lt;STRONG&gt;Console('checking attributes for feature ', f) &lt;/STRONG&gt;inside the "loop and store" section.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 22:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317712#M8281</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-08-10T22:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317715#M8282</link>
      <description>&lt;P&gt;I'm more of a data management type than a programmer so most of my work-arounds go back to the source data.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp; I would convert your table so that each column is broken down into individual records like so:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Alcohol&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Alcohol&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Alcohol&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Alcohol&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Animal&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Animal&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Animal&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine each of these have a unique identifier that wasn't included in your original post, so that would be the first column. Anyways, once this is done I'd filter to "Y" only. The pie chart will then show a count for all of your effects. Not the perfect solution, but I hope it helps someone!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 22:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317715#M8282</guid>
      <dc:creator>EllieHakariAK</dc:creator>
      <dc:date>2023-08-10T22:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317926#M8289</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp; the amount of difference between them varies. Some of the categories off by 6, and others are off by 12 or 5. There's a couple that are spot on, those had a count of 1 and 2.&lt;/P&gt;&lt;P&gt;I tested a couple things in case it was something I did wrong in Pro. I'll use the Alcohol field as an example.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I looked at the data table of the hosted feature layer and clicked on the detailed view of the Alcohol field. It shows a total of 48 "Y"s. &lt;STRONG&gt;But the Pie Chart shows 42&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;I tested swapping out the pie chart data source to the hosted feature layer without any Arcade expressions and grouped by the Alcohol field. It also resulted in 48 counts of "Y".&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I added some Console statements to check on the counting and it seems to be counting correctly.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Caitlin_Todd_LCOR_0-1691769905185.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77931iD18B81FA28BF65F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Caitlin_Todd_LCOR_0-1691769905185.png" alt="Caitlin_Todd_LCOR_0-1691769905185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the pie chart element configured simply like this for testing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Caitlin_Todd_LCOR_1-1691770555774.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77933i4DBB2793F55DBAE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Caitlin_Todd_LCOR_1-1691770555774.png" alt="Caitlin_Todd_LCOR_1-1691770555774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that leaves me pretty stumped on how to troubleshoot further.&lt;/P&gt;&lt;P&gt;If its not the data, nor the Arcade expression, nor the Dashboard Pie Chart element then I'm not sure what else there is to check.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may have to get creative with a workaround to meet my user's request for now, and then revisit when I have time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/483350"&gt;@EllieHakariAK&lt;/a&gt;&amp;nbsp;Nice idea! Unfortunately the data I have to work with wasn't managed super well and there is no unique ID. There's a field for it, but its entirely null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 16:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317926#M8289</guid>
      <dc:creator>Caitlin_Todd_LCOR</dc:creator>
      <dc:date>2023-08-11T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317936#M8292</link>
      <description>&lt;P&gt;Well, we could take a different approach: &lt;STRONG&gt;GroupBy&lt;/STRONG&gt;. We can create calculated fields directly in the function and avoid a loop entirely.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// set portal variable and the feature set 
var p = Portal('portalURL');
var fs = FeatureSetByPortalItem(p,'ItemID',19,['alc_inv','drug_inv','marij_inv','off_road','head_on','fixed_obj','animal'],false);

// filter fs to where any of effect is "Y"
var sql = `alc_inv = 'Y' OR drug_inv = 'Y' OR marij_inv='Y' OR off_road='Y' OR head_on = 'Y' OR fixed_obj='Y' OR animal='Y'`;
var flt = Filter(fs, sql);

// group the filtered featureset, sum "Y" values
var counts = GroupBy(
  flt,
  { name: 'placeholderID', expression: 'placeholderID' },
  [
    { name: 'alc_inv',   expression: "CASE WHEN alc_inv = 'Y' THEN 1 ELSE 0 END",   statistic: 'SUM' },
    { name: 'drug_inv',  expression: "CASE WHEN drug_inv = 'Y' THEN 1 ELSE 0 END",  statistic: 'SUM' },
    { name: 'marij_inv', expression: "CASE WHEN marij_inv = 'Y' THEN 1 ELSE 0 END", statistic: 'SUM' },
    { name: 'off_road',  expression: "CASE WHEN off_road = 'Y' THEN 1 ELSE 0 END",  statistic: 'SUM' },
    { name: 'head_on',   expression: "CASE WHEN head_on = 'Y' THEN 1 ELSE 0 END",   statistic: 'SUM' },
    { name: 'fixed_obj', expression: "CASE WHEN fixed_obj = 'Y' THEN 1 ELSE 0 END", statistic: 'SUM' },
    { name: 'animal',    expression: "CASE WHEN animal = 'Y' THEN 1 ELSE 0 END",    statistic: 'SUM' }
  ]
)

return counts&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will be asking the server itself to do the counting. Since the output will be a single row, you can set the pie chart to &lt;STRONG&gt;Feature&lt;/STRONG&gt; and then add the different fields in. If the counts are off on this, take a closer look at the &lt;STRONG&gt;filter&lt;/STRONG&gt; you're applying. Maybe try omitting the filter and running this straight off of &lt;STRONG&gt;fs&lt;/STRONG&gt;. Since GroupBy sends a single query to the server, it should be pretty fast with or without a filter in place.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 16:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1317936#M8292</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-08-11T16:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Multiple Yes No Fields into Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1318819#M8315</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was pulled away for wildfires in our area and had to put this down for a little while. After revisiting this and getting more eyes on it we discovered why the numbers weren't lining up! It wasn't the expression, that is working perfectly and I marked Josh's solution as the answer for this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "wrench in the cog" was a service overwrite that happened after the expression was put in place, both the item ID and the layer order was changed. So instead of being "Item ID Some Number (19)", it became "ItemID Some other number (2)"&amp;nbsp;After updating the expression the correct numbers are now showing.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Thanks so much for your patience and your help with this!! I was so buried in the weeds I couldn't see the answer right in front of my nose.&lt;/P&gt;&lt;P&gt;Caitlin&lt;/P&gt;&lt;P&gt;Lane Co. GIS&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 18:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/aggregate-multiple-yes-no-fields-into-pie-chart/m-p/1318819#M8315</guid>
      <dc:creator>Caitlin_Todd_LCOR</dc:creator>
      <dc:date>2023-08-15T18:08:23Z</dc:date>
    </item>
  </channel>
</rss>

