I'm creating labels using Arcade code. The labels are showing groundwater sample results from multiple chemicals at multiple locations. Many of the locations were sample multiple times and the label needs to show all samples for all dates. I have the location data in a point layer and the sample results in a separate related table.
I found a video showing how to use data from a related table to create a popup in AGOL. The code was using FeatureSetByRelationshipName. Is it possible to use that in ArcGIS Pro labels?
The code I am using is somewhat similar to the code in the below link.
https://community.esri.com/t5/aec-architecture-engineering-and-construction-blog/use-arcgis-arcade-for-environmental-analytical/ba-p/1299345