<?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: Multiply with a field in another table in Arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1303929#M70657</link>
    <description>&lt;P&gt;I have a stand alone table in the same database that I use for this kind of thing.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var tbl = FeatureSetByName($datastore,"InputTable",['Coeff'], False); 
var feat = First(tbl)
var year = $feature.ForegandeAr * Pow(feat.Coeff, 1);

return Round(year)    &lt;/LI-CODE&gt;&lt;P&gt;I grab the table and the field that I have populated with the value (in this case, 'Coeff').&lt;/P&gt;&lt;P&gt;Grab the fist row in that layer (even though there is only one (any other needed values are their own column)).&lt;/P&gt;&lt;P&gt;Use the value of the feat.Coeff field in the Pow() function.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 14:55:01 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2023-06-28T14:55:01Z</dc:date>
    <item>
      <title>Multiply with a field in another table in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1303864#M70640</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;So I'm trying to create a forecast on how many kids there will be in an area for the next 10 years. I'm using attribute rules and multiply with a coefficient.&lt;/P&gt;&lt;P&gt;The Arcade-script looks like this and works as it should.&lt;/P&gt;&lt;P&gt;var year = $feature.ForegandeAr * Pow(0.993608803, 1);&lt;BR /&gt;return Round(year)&lt;/P&gt;&lt;P&gt;The thing is - the value&amp;nbsp;0.993608803 will change once or twice a year and it appears in a lot of attribute rules. I would therefore like that value (0.993608803) to be taken from another table where I can change it and it changes all the values in all attribute rules. But I don't know how. Can someone please help? Should I make a relationship class? Or a database view? How do I write it in Arcade? Or how can I solve this?&lt;/P&gt;&lt;P&gt;I've attached my gdb if someone needs it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankful for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1303864#M70640</guid>
      <dc:creator>PetronellaHauptmann1</dc:creator>
      <dc:date>2023-06-28T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply with a field in another table in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1303929#M70657</link>
      <description>&lt;P&gt;I have a stand alone table in the same database that I use for this kind of thing.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var tbl = FeatureSetByName($datastore,"InputTable",['Coeff'], False); 
var feat = First(tbl)
var year = $feature.ForegandeAr * Pow(feat.Coeff, 1);

return Round(year)    &lt;/LI-CODE&gt;&lt;P&gt;I grab the table and the field that I have populated with the value (in this case, 'Coeff').&lt;/P&gt;&lt;P&gt;Grab the fist row in that layer (even though there is only one (any other needed values are their own column)).&lt;/P&gt;&lt;P&gt;Use the value of the feat.Coeff field in the Pow() function.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1303929#M70657</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-06-28T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply with a field in another table in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1304169#M70686</link>
      <description>&lt;P&gt;That works great! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiply-with-a-field-in-another-table-in-arcade/m-p/1304169#M70686</guid>
      <dc:creator>PetronellaHauptmann1</dc:creator>
      <dc:date>2023-06-28T20:15:55Z</dc:date>
    </item>
  </channel>
</rss>

