<?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: How do I create a permanent field calculation in an AGOL feature layer? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123671#M5923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any workaround for this? I also have the same question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2020 19:01:53 GMT</pubDate>
    <dc:creator>AnuSawant</dc:creator>
    <dc:date>2020-07-29T19:01:53Z</dc:date>
    <item>
      <title>How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123666#M5918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have create a map to use in Collector for ArcGIS for the fire department. After using it they have a request: Once they input values for Field A and Field B, they want Field C to calculate a solution using Fields A and B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the calculate field function in AGOL (ex. Field C = Field A + Field B). However, the field will not 'remember' this calculation. I want the field calculation to stay in that field so that each time I or another user opens the map and inputs the data for A and B, it will auto-populate the value for C.&amp;nbsp; Is there a way to NOT have to run a field calculation each time I open the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 17:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123666#M5918</guid>
      <dc:creator>AshleyThornton</dc:creator>
      <dc:date>2020-02-21T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123667#M5919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is being hosted as a Feature Layer, you should be able to add a field and perform calculation on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go to your Feature Layer -&amp;gt; Data -&amp;gt; Context Menu on the top right of the data -&amp;gt; Add Field -&amp;gt; Click on the new fields header -&amp;gt; Field Calculator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to populate the new field with the data you want with this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a picture of what it looks like when you have the Context Menu open.&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/484750_OnlineDataContext.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jacob Watson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 21:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123667#M5919</guid>
      <dc:creator>JacobWatson1</dc:creator>
      <dc:date>2020-03-10T21:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123668#M5920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want the values to be calculated as data is entered then you need to create an expression in field. using the calc tool will only work manually. what i have done is create a field and then in the mapviewer create an expression. this can be a combination of other fields. below is what one looks like that i built to do labeling- it does concatenation and rounding.&lt;/P&gt;&lt;P&gt;"Ave. Salinity:&amp;nbsp; "+Round(Average($feature["Salinity_1"],$feature["Salinity_2"],$feature["Salinity_3"]),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 18:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123668#M5920</guid>
      <dc:creator>glennhazelton2</dc:creator>
      <dc:date>2020-04-02T18:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123669#M5921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where did you create an expression ? in Pop-up? then we cannot populate any field . Is there any way that we can have an expression to update a field "C" every time we change fields "A" and "B"?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 17:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123669#M5921</guid>
      <dc:creator>SayenaFarid_Marandi</dc:creator>
      <dc:date>2020-06-08T17:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123670#M5922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this question.&amp;nbsp; Very similar situation except my calculation is done on a related table for a hydrant feature and not the hydrant feature itself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Field A \ Field B) *200 = Field C.&amp;nbsp; Depending on the results of the calculation, I want the text to change to red, if the test needs to be redone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123670#M5922</guid>
      <dc:creator>SallyGalewski</dc:creator>
      <dc:date>2020-06-19T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123671#M5923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any workaround for this? I also have the same question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123671#M5923</guid>
      <dc:creator>AnuSawant</dc:creator>
      <dc:date>2020-07-29T19:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123672#M5924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain where to add this expression? In my case feature service has got Sync and editor tracking enabled so I can't use the Arcade expression. And as mentioned by other SQL or other calculations are just once off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123672#M5924</guid>
      <dc:creator>AnuSawant</dc:creator>
      <dc:date>2020-07-29T19:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123673#M5925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;When in AGOL, I clicked on my related table and went to the “Attribute Expressions” and clicked “Add”.&amp;nbsp; I added my expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;Return ($feature.RLUcATP / $feature.RLUATP1) * 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Clicked “Test” and it looked like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501753_atpCalc.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This video shows how to do it.&amp;nbsp; (about the 4 minute mark)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.bing.com/videos/search?q=using+html+formatting+in+a+pop-up+using+arcade&amp;amp;&amp;amp;view=detail&amp;amp;mid=310D06E17F05BD516F90310D06E17F05BD516F90&amp;amp;&amp;amp;FORM=VRDGAR&amp;amp;ru=%2Fvideos%2Fsearch%3Fq%3Dusing%2Bhtml%2Bformatting%2Bin%2Ba%2Bpop-up%2Busing%2Barcade%26%26FORM%3DVDVVXX"&gt;https://www.bing.com/videos/search?q=using+html+formatting+in+a+pop-up+using+arcade&amp;amp;&amp;amp;view=detail&amp;amp;mid=310D06E17F05BD516F90310D06E17F05BD516F90&amp;amp;&amp;amp;FORM=VRDGAR&amp;amp;ru=%2Fvideos%2Fsearch%3Fq%3Dusing%2Bhtml%2Bformatting%2Bin%2Ba%2Bpop-up%2Busing%2Barcade%26%26FORM%3DVDVVXX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Sally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123673#M5925</guid>
      <dc:creator>SallyGalewski</dc:creator>
      <dc:date>2020-07-29T19:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123674#M5926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 21:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/123674#M5926</guid>
      <dc:creator>AnuSawant</dc:creator>
      <dc:date>2020-07-29T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1096473#M42084</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Sally,&amp;nbsp;&lt;BR /&gt;It seems that “Attribute Expressions”&amp;nbsp;created this way on maps cannot be used/referenced in dashboard displays.&amp;nbsp; &amp;nbsp;So I would not be able to pick "ATP Calc" or {expression/expr0}&amp;nbsp; when I make a dashboard indicator or list.&lt;BR /&gt;Or am I missing how to use/reference them in dashboard displays?&lt;BR /&gt;Any help would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 16:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1096473#M42084</guid>
      <dc:creator>CVHCMaster</dc:creator>
      <dc:date>2021-09-08T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1101613#M42286</link>
      <description>&lt;P&gt;It seems like we should be able to accomplish this - making a calculated column usable in a dashboard indicator or list - by writing an advanced formatting arcade expression.&amp;nbsp; For the life of me though, I cannot seem to figure it out the correct code.&amp;nbsp; In my head, here's the way it would work&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Define a feature set from the existing item (FeatureSetByPortalItem)&lt;/LI&gt;&lt;LI&gt;Define a new feature set by defining a dictionary which has all the same fields as the original feature set plus the additional yet to be calculated field&lt;/LI&gt;&lt;LI&gt;Write a for loop that would iterate over the number of features in the original feature set and would assign attribute values to the new feature set - with the values of the not-calculated fields simply being equal to the i(th) [the iteration number] value in the original feature set of the corresponding original attribute, and the calculated column references some combination of the original feature set i(th) attribute values.&lt;/LI&gt;&lt;LI&gt;Return the new feature set and make a list or indicator from the new values.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Great in theory, but I cannot seem to make it actually work.&amp;nbsp; This sort of thing is super simple in Power BI - making a calculated column.&amp;nbsp; But all of the Googling and trying I've done so far say it's either difficult or impossible in ArcGIS Dashboards.&lt;/P&gt;&lt;P&gt;I'm happy to share my nonfunctioning code if anyone thinks they can actually make this work.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1101613#M42286</guid>
      <dc:creator>JoshSender2</dc:creator>
      <dc:date>2021-09-24T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1105080#M42443</link>
      <description>&lt;P&gt;Hi, I am also struggling for this question and haven't figured out a solution to fix it.&amp;nbsp; dashboard doesn't inherit AGOL expression. it doesn't add to the feature layer itself, but only the pop-up. is there any way to fix this issue. I have a lot of calculated field in attribute table. I need the attribute table to automatically calculate and remember the calculated field when i append new row of data. Eventually, the information is captured automatically in dashboard configured list of element&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1105080#M42443</guid>
      <dc:creator>davidlam123</dc:creator>
      <dc:date>2021-10-06T08:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1106429#M42517</link>
      <description>&lt;P&gt;Same problem here..&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 15:25:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1106429#M42517</guid>
      <dc:creator>Kantoor__DataCount_-_Verkeerso</dc:creator>
      <dc:date>2021-10-11T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1129774#M43576</link>
      <description>&lt;P&gt;I too have been struggling with this for quite a while and have found a bit of a solution! (if you have access to ArcPro).&lt;/P&gt;&lt;P&gt;I pull my feature layer out of the portal into ArcPro and put the Calculate Field into a Model scheduled to run periodically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only downside I see to this is that the machine with the Scheduled Tool has to be on in order for this to work. As I understand it, ArcPro doesn't even have to be open.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-12-30 175632.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30548i2C8D18A29096F795/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-12-30 175632.jpg" alt="Screenshot 2021-12-30 175632.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 00:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1129774#M43576</guid>
      <dc:creator>MattTarkington1</dc:creator>
      <dc:date>2021-12-31T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1131751#M43676</link>
      <description>&lt;P&gt;I just tested this out on some scrap data and this works brilliantly.&amp;nbsp; It is in no way shape or form the ideal solution to this issue, but hey, any solution is better than no solution.&lt;/P&gt;&lt;P&gt;Thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1131751#M43676</guid>
      <dc:creator>JoshSender2</dc:creator>
      <dc:date>2022-01-07T22:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1166427#M45682</link>
      <description>&lt;P&gt;This worked! Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17028"&gt;@SallyGalewski&lt;/a&gt;&amp;nbsp;!&amp;nbsp; Can't wait to implement this in some of my maps.&amp;nbsp; The only thing I noticed that didn't seem to work was labeling off of this expression field.&amp;nbsp; That'd be a nice addition so the field crews see the calc'd value right away.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 21:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1166427#M45682</guid>
      <dc:creator>DavidForbuss1</dc:creator>
      <dc:date>2022-04-20T21:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1272241#M51107</link>
      <description>&lt;P&gt;would it be possible to do this using Notebooks?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 22:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1272241#M51107</guid>
      <dc:creator>timshapiro</dc:creator>
      <dc:date>2023-03-27T22:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1287065#M52038</link>
      <description>&lt;P&gt;I believe so. It's something that I'm experimenting now. Having issue's with the arcpy.management CalculateField module though.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 22:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1287065#M52038</guid>
      <dc:creator>MattTarkington1</dc:creator>
      <dc:date>2023-05-08T22:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1295100#M52550</link>
      <description>&lt;P&gt;I use an acrade script to create a popup that calcs two dates against each other.&amp;nbsp; Seems like you could do the same for other fields.&amp;nbsp; I got this template from a forum on&amp;nbsp; here (sorry, I forgot where or I'd give them credit).&amp;nbsp; Anyway, here's mine.&amp;nbsp; Must be used in the new map viewer, so add this as one of your expressions, then in the popup add {expr/1} or whatever number it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Access 'Inspections' table as a FeatureSet&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var portal = Portal("PORTAL ADDRESS HERE")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var inspections = FeatureSetByPortalItem(portal,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"ITEM NUMBER HERE", &amp;lt;layer # in service here&amp;gt;, ['field1', 'field2',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'field3'])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Filter related features by using a common attribute&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var facilityid = $feature.parentID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var filterStatement = 'childID = @parentID'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Related features as a variable&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var relatedData = Filter(inspections, filterStatement)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Sort related features by oldest to newest&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var relatedDataSorted = Top(OrderBy(relatedData, 'field3 DESC'),1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Build the pop-up string by iterating through all related features&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var popupString = 'Last Flushed Date: '&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;for (var f in relatedDataSorted){&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;popupString += Text(f.field3, 'MM/DD/YYYY')&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DefaultValue(popupString, 'No measurements to show')&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 18:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1295100#M52550</guid>
      <dc:creator>DavidForbuss1</dc:creator>
      <dc:date>2023-06-01T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a permanent field calculation in an AGOL feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1295902#M52592</link>
      <description>&lt;P&gt;I have been able to get this to work in notebooks. It runs faster than in a model builder. And you have access to more Python modules.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 18:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-create-a-permanent-field-calculation-in/m-p/1295902#M52592</guid>
      <dc:creator>MattTarkington1</dc:creator>
      <dc:date>2023-06-05T18:13:27Z</dc:date>
    </item>
  </channel>
</rss>

