<?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: Data Expression: From Address field, summary counts by State in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-from-address-field-summary-counts/m-p/1083342#M4857</link>
    <description>&lt;P&gt;The first example here&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/" target="_blank"&gt;Introducing Data Expressions in ArcGIS Dashboards (esri.com)&lt;/A&gt;&amp;nbsp;, might be helpful? I can't code, so I can't try it myself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example uses data that is separated by commas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An alternative (and probably easier, if a little bit time intensive depending on what you already have set up) is having a separate States field.&lt;/P&gt;&lt;P&gt;You could&amp;nbsp;add in a states layer, and then extract data to points.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or manually create a states field and fill it out, then set up your chart based on that?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Depending on how the data is originally collected, you might already have that as a separate field anyway (e.g. like when you shop online and put in your shipping address, you have two address lines, the state, and postal code). I am assuming this is how it's set up, and then concatenated into the "Address" field.&lt;/P&gt;&lt;P&gt;For the pop-up, you can concatenate all parts of the address together, rather than having them in one field. That way you get a nice, clean address for the viewer, but your data is easier to manipulate and pull apart.&lt;/P&gt;&lt;P&gt;If you can edit the table in Excel (X-tools should be able to do this), you should be able to pretty easily edit the data quickly. It might take a little bit of work but, it would be pretty easy&lt;/P&gt;&lt;P&gt;The following is probably not the most efficient way to do this, but it wouldn't take too long anyway.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copy your data into a new workbook just in case&lt;/LI&gt;&lt;LI&gt;Write a list of your States across the columns (H-L, in my example)&lt;OL&gt;&lt;LI&gt;=IF(ISNUMBER(FIND(H$2,$A3))=TRUE, H$2,"")&lt;BR /&gt;(Change cell references as necessary)&lt;/LI&gt;&lt;LI&gt;Drag that down the column, and across so that each of your states has this formula underneath it. (Or Select Cells, Ctrl+D, Ctrl+R)&lt;/LI&gt;&lt;LI&gt;This will search the address field for the (Case-sensitive) State abbreviation and return it if present, or else a blank.&lt;OL&gt;&lt;LI&gt;You can set it up to return the full name if you want. Replace the second H$2 with "Western Australia", for example&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;In another column (F, in my example)&lt;OL&gt;&lt;LI&gt;=CONCATENATE(H3,"",I3,"",J3,"",K3,"",L3)&lt;BR /&gt;(Change cell references as necessary)&lt;/LI&gt;&lt;LI&gt;Drag that down the column (or Ctrl+D with the column selected).&lt;/LI&gt;&lt;LI&gt;This will collect all of the states from your search columns into one column&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Copy your Concatenated Data Column and Paste as Values Only into the States Field of your original data&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1627426472290.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19483iECEE72EC31B6F306/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1627426472290.png" alt="AlfredBaldenweck_0-1627426472290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want an "Other" Value for where no state information is entered into the original address&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In Column G,&amp;nbsp;&lt;OL&gt;&lt;LI&gt;=IF(AND(H3="", I3="", J3="", K3="", L3=""),"Other", "")&lt;BR /&gt;(Change cells as necessary)&lt;/LI&gt;&lt;LI&gt;Drag down the column&lt;/LI&gt;&lt;LI&gt;This will input the value of "Other" if the address has none of the States listed.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Add&amp;nbsp; G4,""&lt;BR /&gt;to your concatenate formula, drag down the column, copy and paste as values in the State field.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1627427138980.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19485i920D5FB6604F6117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1627427138980.png" alt="AlfredBaldenweck_1-1627427138980.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I probably over-explained here, but this is a pretty fast (like 5 minutes max of set-up time) way to extract that state information out of data you already have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 23:09:04 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2021-07-27T23:09:04Z</dc:date>
    <item>
      <title>Data Expression: From Address field, summary counts by State</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-from-address-field-summary-counts/m-p/1071892#M4721</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Address field, that will always contain our State abbreviation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2021-06-24_17-30-35.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16792iC83C3DB3BD423AC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-06-24_17-30-35.png" alt="2021-06-24_17-30-35.png" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I want:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A pie chart in a dashboard, showing a count of enquiries by State.&amp;nbsp; Example below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16794i8B00ED0E51554F30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This will actually be used on its own, embedded into an ArcGIS Hub site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With arcade in a popup, I am familiar with how to pluck out the State abbreviation from the address field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="111.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16795i1E8ED39BD61A398A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&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;&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 have been struggling to try and build a Data Expression in ArcGIS dashboards to achieve this.&lt;/P&gt;&lt;P&gt;I have reviewed the expression in Github, but struggling to find one that I could reverse engineer to work for my fairly simple problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can anyone assist in helping me understand if I can achieve this with a data expression?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hosted feature layer is &lt;A href="https://www.arcgis.com/home/item.html?id=227dabcfeb354814b9eabffa7690d192" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The web map is &lt;A href="https://arcg.is/0iin9X" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 08:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-from-address-field-summary-counts/m-p/1071892#M4721</guid>
      <dc:creator>SimonGIS</dc:creator>
      <dc:date>2021-06-24T08:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Expression: From Address field, summary counts by State</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-from-address-field-summary-counts/m-p/1083342#M4857</link>
      <description>&lt;P&gt;The first example here&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/" target="_blank"&gt;Introducing Data Expressions in ArcGIS Dashboards (esri.com)&lt;/A&gt;&amp;nbsp;, might be helpful? I can't code, so I can't try it myself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example uses data that is separated by commas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An alternative (and probably easier, if a little bit time intensive depending on what you already have set up) is having a separate States field.&lt;/P&gt;&lt;P&gt;You could&amp;nbsp;add in a states layer, and then extract data to points.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or manually create a states field and fill it out, then set up your chart based on that?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Depending on how the data is originally collected, you might already have that as a separate field anyway (e.g. like when you shop online and put in your shipping address, you have two address lines, the state, and postal code). I am assuming this is how it's set up, and then concatenated into the "Address" field.&lt;/P&gt;&lt;P&gt;For the pop-up, you can concatenate all parts of the address together, rather than having them in one field. That way you get a nice, clean address for the viewer, but your data is easier to manipulate and pull apart.&lt;/P&gt;&lt;P&gt;If you can edit the table in Excel (X-tools should be able to do this), you should be able to pretty easily edit the data quickly. It might take a little bit of work but, it would be pretty easy&lt;/P&gt;&lt;P&gt;The following is probably not the most efficient way to do this, but it wouldn't take too long anyway.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copy your data into a new workbook just in case&lt;/LI&gt;&lt;LI&gt;Write a list of your States across the columns (H-L, in my example)&lt;OL&gt;&lt;LI&gt;=IF(ISNUMBER(FIND(H$2,$A3))=TRUE, H$2,"")&lt;BR /&gt;(Change cell references as necessary)&lt;/LI&gt;&lt;LI&gt;Drag that down the column, and across so that each of your states has this formula underneath it. (Or Select Cells, Ctrl+D, Ctrl+R)&lt;/LI&gt;&lt;LI&gt;This will search the address field for the (Case-sensitive) State abbreviation and return it if present, or else a blank.&lt;OL&gt;&lt;LI&gt;You can set it up to return the full name if you want. Replace the second H$2 with "Western Australia", for example&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;In another column (F, in my example)&lt;OL&gt;&lt;LI&gt;=CONCATENATE(H3,"",I3,"",J3,"",K3,"",L3)&lt;BR /&gt;(Change cell references as necessary)&lt;/LI&gt;&lt;LI&gt;Drag that down the column (or Ctrl+D with the column selected).&lt;/LI&gt;&lt;LI&gt;This will collect all of the states from your search columns into one column&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Copy your Concatenated Data Column and Paste as Values Only into the States Field of your original data&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1627426472290.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19483iECEE72EC31B6F306/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1627426472290.png" alt="AlfredBaldenweck_0-1627426472290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want an "Other" Value for where no state information is entered into the original address&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In Column G,&amp;nbsp;&lt;OL&gt;&lt;LI&gt;=IF(AND(H3="", I3="", J3="", K3="", L3=""),"Other", "")&lt;BR /&gt;(Change cells as necessary)&lt;/LI&gt;&lt;LI&gt;Drag down the column&lt;/LI&gt;&lt;LI&gt;This will input the value of "Other" if the address has none of the States listed.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Add&amp;nbsp; G4,""&lt;BR /&gt;to your concatenate formula, drag down the column, copy and paste as values in the State field.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1627427138980.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19485i920D5FB6604F6117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1627427138980.png" alt="AlfredBaldenweck_1-1627427138980.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I probably over-explained here, but this is a pretty fast (like 5 minutes max of set-up time) way to extract that state information out of data you already have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 23:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-from-address-field-summary-counts/m-p/1083342#M4857</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2021-07-27T23:09:04Z</dc:date>
    </item>
  </channel>
</rss>

