<?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 Writing Arcade expression for overlapping variable taxing jurisdictions in the Popup tool, then sum the tax rate for TotalTaxRate. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1280435#M68149</link>
    <description>&lt;P&gt;Hey gang!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've run into a roadblock in creating my own custom service for my agency, I've got ~500 taxing jurisdictions in total. They all can overlap, but don't have to. The main layers are State, County, Municipal (City), and Special Districts. This isn't the part I need help on, but providing a little background. Where I am stuck is configuring the Popup Tool to 1) list the applicable taxing jurisdictions that are present at any given point in the state (this part I was successful in with my code, see below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_3-1681934537200.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68489iA2A239FCDB181E54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_3-1681934537200.png" alt="BryantKosanovich_3-1681934537200.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need anymore info too please and thank you!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_0-1681934045473.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68485iF46A10F6567FF5F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_0-1681934045473.png" alt="BryantKosanovich_0-1681934045473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 2 however, Total Tax Rate, I have no idea how to approach. Here's what I have now, but I have no idea if I'm even barking up the right tree at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_1-1681934344458.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68486i6961363970828BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_1-1681934344458.png" alt="BryantKosanovich_1-1681934344458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var SumTax_Rate = Sum(&lt;BR /&gt;$feature.Tax_Rate,&lt;BR /&gt;'$feature.Jurisdiction_Name,$feature.Jurisdiction_Name'&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;return Text(SumTax_Rate, '$#,###.##')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is, is the underlying data will always be changing whenever the user clicks on a different point on&amp;nbsp; the map. This is why I am trying to write the code to essentially grab whatever the results are from the first expression (or Step 1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to have it look something like this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_2-1681934452933.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68488iF26E2FCB38416AD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_2-1681934452933.png" alt="BryantKosanovich_2-1681934452933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 20:04:47 GMT</pubDate>
    <dc:creator>BryantKosanovich</dc:creator>
    <dc:date>2023-04-19T20:04:47Z</dc:date>
    <item>
      <title>Writing Arcade expression for overlapping variable taxing jurisdictions in the Popup tool, then sum the tax rate for TotalTaxRate.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1280435#M68149</link>
      <description>&lt;P&gt;Hey gang!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've run into a roadblock in creating my own custom service for my agency, I've got ~500 taxing jurisdictions in total. They all can overlap, but don't have to. The main layers are State, County, Municipal (City), and Special Districts. This isn't the part I need help on, but providing a little background. Where I am stuck is configuring the Popup Tool to 1) list the applicable taxing jurisdictions that are present at any given point in the state (this part I was successful in with my code, see below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_3-1681934537200.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68489iA2A239FCDB181E54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_3-1681934537200.png" alt="BryantKosanovich_3-1681934537200.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need anymore info too please and thank you!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_0-1681934045473.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68485iF46A10F6567FF5F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_0-1681934045473.png" alt="BryantKosanovich_0-1681934045473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 2 however, Total Tax Rate, I have no idea how to approach. Here's what I have now, but I have no idea if I'm even barking up the right tree at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_1-1681934344458.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68486i6961363970828BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_1-1681934344458.png" alt="BryantKosanovich_1-1681934344458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var SumTax_Rate = Sum(&lt;BR /&gt;$feature.Tax_Rate,&lt;BR /&gt;'$feature.Jurisdiction_Name,$feature.Jurisdiction_Name'&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;return Text(SumTax_Rate, '$#,###.##')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is, is the underlying data will always be changing whenever the user clicks on a different point on&amp;nbsp; the map. This is why I am trying to write the code to essentially grab whatever the results are from the first expression (or Step 1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to have it look something like this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BryantKosanovich_2-1681934452933.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68488iF26E2FCB38416AD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BryantKosanovich_2-1681934452933.png" alt="BryantKosanovich_2-1681934452933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 20:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1280435#M68149</guid>
      <dc:creator>BryantKosanovich</dc:creator>
      <dc:date>2023-04-19T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Arcade expression for overlapping variable taxing jurisdictions in the Popup tool, then sum the tax rate for TotalTaxRate.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282117#M68326</link>
      <description>&lt;P&gt;If I understand correctly, you want to just click anywhere in the map and show the sum of all tax rates at that coordinate?&lt;/P&gt;&lt;P&gt;That's currently not possible with Arcade, as there is no way to get the map coordinate you clicked on.&lt;/P&gt;&lt;P&gt;However, if you have features you can click on (say, address points or parcels), you can do it with an expression like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var districts = FeaturesetByName($map, "TaxRateLayer")
var i_districts = Intersects($feature, tax_districts)
return Sum(i_districts, "TaxRateField")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 21:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282117#M68326</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-04-24T21:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Arcade expression for overlapping variable taxing jurisdictions in the Popup tool, then sum the tax rate for TotalTaxRate.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282332#M68345</link>
      <description>That’s interesting. So Arcade can gather all of the applicable, in this&lt;BR /&gt;case, tax rates, from the available features for a given location that a&lt;BR /&gt;user clicks, but it can’t sum them from the attribute data in those&lt;BR /&gt;features? That just seems like a weird shortcoming I guess. When a user&lt;BR /&gt;clicks on the map, it can accurately tell them there’s 3 jurisdictions with&lt;BR /&gt;rates 1%, 2%, and 3%, but it can’t provide the user with a total (sum) line&lt;BR /&gt;of 6%? It wouldn’t even really need to interact with the map at all at that&lt;BR /&gt;point though, Arcade has the data needed, it just needs to run a sum&lt;BR /&gt;operation from the results of that first click the user performed, right?&lt;BR /&gt;&lt;BR /&gt;Thank you for responding too by the way, I appreciate the help. I don’t&lt;BR /&gt;want to sound ungrateful, I’m just perplexed given how robust Arcade&lt;BR /&gt;seemingly is I suppose. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282332#M68345</guid>
      <dc:creator>BryantKosanovich</dc:creator>
      <dc:date>2023-04-25T14:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Arcade expression for overlapping variable taxing jurisdictions in the Popup tool, then sum the tax rate for TotalTaxRate.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282404#M68354</link>
      <description>&lt;P&gt;I mean, you can get the sum of all the jurisdiction taxes that intersect the currently selected jurisdiction. But that probably won't be the correct tax rate for the specific coordinate you clicked on.&lt;/P&gt;&lt;P&gt;As long as there is no way to get coordinates in Arcade, your best bet is probably to precompute the tax sums.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 16:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-arcade-expression-for-overlapping-variable/m-p/1282404#M68354</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-04-25T16:03:33Z</dc:date>
    </item>
  </channel>
</rss>

