Hi everyone,
I have a join layer view of water meter readings joined to parcels in which there could be several meter readings related to any given parcel. I want to create a List element of distinct parcels that have meter readings associated with it. I'm using a data expression to create my list element and so far I have the following in my expression:
var parcels = FeatureSetByPortalItem(Portal('myurlhere'), 'myItemIDhere', 0, ['*'], true)
var parcelsMeterReadings = Filter(parcels, 'ADDRESS IS NOT NULL')
var uniqueParcelsWithMeters = Distinct(parcelsMeterReadings, ['ADDRESS', 'GlobalID'])
return uniqueParcelsWithMeters
This successfully returns the information I want to display in my list, however I can't use the pan/zoom actions to zoom the map to a selected parcel. I am able to use the pan/zoom actions when I return variable "parcels" and when I return variable "parcelsMeterReadings" (ie, with my original FeatureSet and with a filtered FeatureSet), but once I use the Distinct function, I lose the geometry. Is there any way around this?