Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

How would I auto fill a field in a point feature based off of a polygon that it is within?

I am creating a field map for data collection in which we have a polygon layer and a point layer. we will be creating points and every point will be within one of these polygons, I was wondering if it ...
Benjamin LaBorde's user avatar
0 votes
3 answers
32 views

ArcGIS Arcade code not giving desired outcome

I have the following code below. I'm trying to search for a text inside a string from a date field and populate it with the associated month with ArcGIS Arcade. So far I just keep getting the default ...
GeorgeStevenJ9272's user avatar
0 votes
0 answers
30 views

Attribute rule to union buffers

I've successfully created an attribute rule to add a new buffer to a polygon feature class (FC) when a new point is added to a point FC. However, now I need to dissolve all buffers in the polygon FC (...
Matt Warren's user avatar
0 votes
0 answers
15 views

Populating field from related records on AGOL

I have a layer I would like to visualize based on related records. I understand this cannot be done directly in ArcGIS Online based on this article: Visualize data from related records using Arcade. I ...
RossV's user avatar
  • 328
1 vote
0 answers
70 views

Arcade Expression for radio button in ArcGIS Field Maps

I'm trying to set a field in a pop up that appears when a feature is clicked. The attributes show up in the pop up and then one must hit the edit icon which brings the form view for the feature up on ...
geoJshaun's user avatar
  • 1,525
1 vote
0 answers
43 views

Using ArcGIS Pro arcade labeling profile, how to check existence of a field

I am trying to consolidate dozens of arcade label expressions into a single expression that is sophisticated enough to handle two different possible data sources (These expressions are being written ...
cando42's user avatar
  • 31
0 votes
0 answers
24 views

Arcade Dashboard List Formatting - Rename Fields and Sum Stats

I have a dataset from a Survey123 and my goal is to add a list element in the dashboard that shows the top 3 students based on the number of birds they identified by sight. I imagine I will use an IF/...
Caroline's user avatar
0 votes
0 answers
25 views

Summarize Two Overlapping Layers Within a Third Layer

My project has 3 relevant layers, 2 with data I wish to extract and a 3rd representing the geography I need a summary of. Landuse, Field "Use" (values x y z), Soils, Field "Soil Type&...
Sean Kennedy's user avatar
0 votes
0 answers
30 views

ArcGIS Arcade for WebMap Symbology Issue

I'm working on some custom symbology logic for a WebMap and no matter how I form the Arcade I can't return the appropriate symbol classes, just a block of all features classified as "Other". ...
Josh M's user avatar
  • 1
1 vote
1 answer
470 views

ESRI Dashboard: Arcade in List (advanced formatting): filter unique values

I'm not sure if this is the best place to ask questions about Esri's Dashboard since it's not GIS per se - but it's not getting much traction on Esri's community page: https://community.esri.com/t5/...
YGS's user avatar
  • 195
0 votes
1 answer
45 views

Manual classes symbol ArcGis Pro

I am trying to create 2 classes of symbol based on attributes. I refer to this doc: https://pro.arcgis.com/fr/pro-app/latest/help/mapping/layer-properties/set-custom-expressions-for-symbology.htm ...
Arthur's user avatar
  • 883
0 votes
0 answers
27 views

Inspection date conditional formatting symbology

I am trying to set symbology in ArcGIS Online based on Service Status, In or Out, and Inspection Date, this will either be NULL or have a date. If a hydrant is IN or Out of service but has not been ...
user226542's user avatar
2 votes
1 answer
237 views

ArcGIS Online Dashboard change date format in advanced formatting

I have set up an ArcGIS Online Dashboard using a custom data expression that uses variables for dates as follow: var start = ToLocal(Date(1970, 0, 01, 0, 0, 0, 0)); var dtpoletbl = DateDiff(t....
NorthSon's user avatar
  • 329
0 votes
2 answers
432 views

ArcGIS Online Dashboard join layers through Arcade scripting

I'm trying to build a script to create a joined layer based on a feature layer and a table my client gave me with only data entry permissions. The structure of the two layers is something as following ...
NorthSon's user avatar
  • 329
0 votes
1 answer
116 views

How to use DateDiff function with custom dates in Dashboard

I'm building an indicator in dashboard. What I would like to show is the current velocity & the velocity required to finish by year end in 'mi'. I've got the current velocity working, sort of. In ...
Alex Page's user avatar
0 votes
0 answers
217 views

Calculate feature count based on a certain field in arcade

I am new to arcade. I have a hosted feature layer in my portal in which I have a field named district and it has records like A, A, A, B, C, C. I essentially want to get total count of A, B, C and ...
gis's user avatar
  • 111
0 votes
2 answers
37 views

How can I modify style options in MapViewer to only display records that are less than 1 year old?

What I have: A hosted joined view layer with a Inspection Date field ('insdate') and an Operable field ('h_operable'). The view is defined such that it only holds the most recent record for each ...
Austin Averill's user avatar
0 votes
2 answers
29 views

Categorise by week number of each year in ArcGIS Pro

I am new to ArcGIS Pro, and I would like to have a categorised symbology based on the year and week number of the year in question. For ex: 2022: Week 1 2022: Week 2 2022: Week 3 ... 2023: Week 1 ... ...
Inès Moreno's user avatar
1 vote
1 answer
24 views

Abbreviated label created in ArcGIS Pro not working in ArcGIS Online

I've created a label dictionary to shorten a status type label from displaying "Access" to "A" or "No Access" to "N". This works perfectly in ArcGIS Pro, but ...
Alex Page's user avatar
0 votes
0 answers
38 views

ArcGIS Online - Linking Symbology between layers

I have two sets of data presented on a web map using ArcGIS Online (Classic). These data are points and lines. The points represent a building, and the lines feed out from the points representing a ...
Keagan Allan's user avatar
  • 3,696
0 votes
0 answers
13 views

Attempting to make a work-around for requiring fields for Fire Department Pre-Incidence Solution while maintaining Status integrity

I'm working with a heavily customized version of the Pre-Incidence Solution in which fire fighters can conduct site visits and collect pre-incident data directly into a form on a 'Site Visit' web map ...
Kowalski's user avatar
2 votes
1 answer
156 views

Arcade expression for FIND using multiple values - getting error for wrong number of arguments

This is a selection of my data. CLVM71-01, CLVM71-02, CLVM72-01, CLVM72-02, CLVX71-01, CLVX72-01, CLVX73-01, CLVX73-02, CLVN73-01, CLVN72-01, CLVA71-01, CLVA72-01, CLVA73-01, CLVA74-01, CLVM74-01, ...
Invercargill's user avatar
1 vote
3 answers
260 views

ArcGIS Pro Arcade Expression for various characters in the Asset Id field

I'm looking for an arcade expression for arcgis pro symbology. Involves the Asset ID field to symbolise based on text within an asset ID. Say if the asset ID contains C2 then blue (for instance), or ...
Invercargill's user avatar
1 vote
0 answers
184 views

Getting count of intersect in Arcade attribute rule in enterprise geodatabase

Having two feature classes in an enterprise geodatabase like - EGDB.North.Parcels - EGDB.North.ProjectsInvest I am trying to get the total count of Intersection between EGDB.North.Projects in ...
Suffii's user avatar
  • 588
1 vote
2 answers
91 views

Use Trigger field with a calculation attribute rule to deleniate between auto calculated data and manually entered data

I have a calculation attribute rule in Arcade that is meant to have the following fields work in conjunction with each other: Name: eight digit unique ID AMPageName: 5 digit page name that consists ...
JBizz49's user avatar
  • 17
0 votes
1 answer
344 views

Dynamically display total length of polyline feature class in miles using Arcade expression?

I am using ArcGIS Pro 3.0. I would like to use Insert Table Attribute on a layout to display the total length (in miles) of a polyline feature class. I want this to be dynamic -- not a field calculate ...
Joseph's user avatar
  • 1
0 votes
1 answer
49 views

Arcade Expression To Enforce Field Value String Length In a Subset of Records

Trying to apply an attribute rule to constrain a feature to a certain length (in the below example 8 character string, yet also trying to do it over a subset of data, in which attributes of another ...
JBizz49's user avatar
  • 17
1 vote
1 answer
294 views

Arcade expression to calculate field in point dataset based on whether its features lie within specified polygon dataset using ArcGIS Pro ModelBuilder

Can anyone help with an Arcade expression to calculate a new field in a point dataset based on whether or not each point feature is within a polygon dataset in ArcGIS Pro ModelBuilder? I have a point ...
Rachel Sinclair's user avatar
1 vote
1 answer
272 views

Arcade expression that selects the nth element in a dynamic table attribute based on map series rows

I have a map series layout that displays all the photo attachments associated with each feature in a line feature class, housed in a file geodatabase. This line feature class is the index layer of the ...
keenwild's user avatar
0 votes
1 answer
141 views

Arcade equivalent of Python ".zfill"

What is the equivalent of the "zfill" python function to set a specific number of digits for values in a field using Arcade?
Jesse's user avatar
  • 3
1 vote
1 answer
85 views

Formatting data so it can appear as a List indicator in AGOL Dashboard

Below is an example of what My List element looks like in AGOL Dashboards My data exists in individual cells and is seperated by ';'. I am trying to get the List indicator to show that after every ';'...
Rex_01's user avatar
  • 83
1 vote
1 answer
51 views

Trying to list cities in a county using intersection

I am trying to configure a popup in arcgis online which finds all major US cities within a county and lists them. I have the US Counties and Major US Cities layers. I am trying to create an ...
Angie Schirck's user avatar
0 votes
1 answer
159 views

Get Associations using Attribute Rules

i am trying to get all content features and put their GlobalID inside new array and use this array later to filter the table or the feature class containing this features. var contentRows = ...
mohamed gamal's user avatar
0 votes
0 answers
104 views

ArcGIS Pro Arcade Expression - Validation Rule

I am trying to create a validation rule that identifies duplicates within the column ID. Can anyone see where is the problem? I am getting all the features as returns which is not the intention with ...
user206005's user avatar
0 votes
1 answer
63 views

Superscript ordinals for street labels in ArcGIS Pro

I'm using ArcGIS Pro 3.0. I have a Streets feature class that includes the ordinal for numeric streets in the street name field. For example, for "13th Street", the name field is "13th&...
Anna Riling's user avatar
0 votes
0 answers
44 views

Custom operations in ArcGIS Insights dashboard

I have a point layer of city trees. I'm setting an ArcGIS Insights Dashboard to analyse this data set. I have set some linked maps and charts: species treemap, barchart of trees by neighborhood,etc. I'...
Albert's user avatar
  • 2,587
0 votes
2 answers
1k views

How to find the number of unique values in a field using Arcade expression in ArcGIS Online

I have a field in my attribute named Status which has three uniques values, I am trying to get the count of the unique values, but I cannot get the count. The field looks like, Status Work Stop ...
Vicky's user avatar
  • 25
0 votes
1 answer
200 views

Simple expression to limit string count in an attribute field

Looking to create an attribute rule to constrain a value in an attribute field to a certain length. I used to be able to use "stringcount" in VB script to return features of a certain ...
JBizz49's user avatar
  • 17
1 vote
1 answer
320 views

Using arcade in an attribute rule: error "array type expected" (ArcGIS Pro)

I want to do the following attribute rule in ArcGIS Pro: Query the excavation ID attribute according to xxx.xxx.x / x.xx.x / xxx.xx.x / xx.xx.x (e.g. Bhg.018.1 / B.33.2 / Lhb.28.3 etc). , i.e. the 2- ...
Fabio's user avatar
  • 21
1 vote
0 answers
187 views

ArcGIS Pro Pop-ups: How do I show all attributes in rows of a single table?

I have a pop-up configured to display a set of results for a selected location. Using Arcade expressions and HTML, I get a pop-up that looks like this: I need to show all of the rows for each Z range ...
mountainscaler's user avatar
1 vote
1 answer
84 views

How to include layer symbology in ArcGIS Online popup

Is it possible to include a layer's symbology within the popup in ArcGIS Online? Below is an example of 2 different types of symbology that I'm using in my ArcGIS Online map. The fork/spoon icon ...
pac_co's user avatar
  • 537
0 votes
1 answer
75 views

ArcGIS Pro Arcade If-And Statement

I have an Expression that I am trying to create for symbology that essentially filters on three categories. The Two are very simple, the last one has a lot of criteria that work for it. For example, ...
Pman's user avatar
  • 1
0 votes
1 answer
137 views

ArcGIS Arcade Determining if a sorted array of numbers has consecutive numbers within it

I have an array of numbers and want to determine the starting number and ending number of any numbers that are consecutive. The numbers will always be in ascending order. I would like to create a ...
PMK's user avatar
  • 1,200
1 vote
2 answers
507 views

ArcGIS Arcade Labeling When Text Includes HTML Reserved Characters

I am using the following expression in an ArcGIS feature label: "(CH<SUB>4</SUB> " + $feature.Methane + " ppm)" This works (e.g., CH4 15 ppm) unless the $feature....
Ilgeo's user avatar
  • 11
1 vote
1 answer
342 views

Formatting Symbology [offset distance] with Arcade Expression in ArcGIS Online

I'm trying to create a web map that highlights chemistry sampling data for my organization. Each station point has several "chemistry parameters" that needs to be displayed in a "bar ...
geoclectic's user avatar
0 votes
1 answer
908 views

Is there a specific arcade expression to remove duplicate labels?

I am working within ArcGIS Online to create a web map. I am trying to remove some labels that have duplicate labels to only show one. I have two fields that I am labelling. One is called "...
BenM's user avatar
  • 3
0 votes
1 answer
427 views

Arcade Intersects returns geometries with same areas

I am writing an Arcade expression for a pop-up that will intersect the selected geometry with an underlying layer that has 6 different types of values (C, S, R, O, OC, EMO). I want the expression to ...
RossV's user avatar
  • 328
3 votes
2 answers
998 views

Multiple If statements in one ArcGIS Arcade Expression

I'm trying to get this popup expression to work in ArcGIS Online using ArcGIS Arcade. if ($feature["Road_Work_Ahead_Deployed"] >= 1){ return "Road Work Ahead Deployed: " + $...
Ryan's user avatar
  • 311
1 vote
1 answer
918 views

ArcGIS Online Arcade Count Features

I'm creating a dashboard using ArcGIS Experience Builder and I'm having trouble writing Arcade code to display the total number of assets with a condition equal to excellent. I think I'm on the right ...
JFischer's user avatar
1 vote
1 answer
1k views

Converting text date to date in Arcade

I am attempting to convert string which is formatted like MM/DD/YYYY to an actual date format in Arcade on ArcGIS Online. This is the code I am using. var cd = split($feature["DATE_"], "...
eh34's user avatar
  • 21