Select to view content in your preferred language

How to return unique values from the field/column of table fgdB?

381
13
Thursday
BSBlagojevic
Regular Contributor

How to return unique values from the field/column of table fgdB which participates in the relationship 1:M? I need unique values for the related report. Distinct keyword in Arcade does not do this on field/column (only on array, tested), and in SQL for file geodatabase this keyword is not supported!

Thanks for any help!

0 Kudos
13 Replies
KenBuja
MVP Esteemed Contributor

This goes back to my previous post

How you get the features variable depends on where you're using the Arcade code. It could be using the variable $datastore or $layer. Or you might need to get it from a function like FeatureSetByName or FeatureSetByPortalItem

What happens when you use "$datastore"?

0 Kudos
BSBlagojevic
Regular Contributor

Thanx! NOT PASS!

BSBlagojevic_0-1758645668060.png

Regards!

 

0 Kudos
KenBuja
MVP Esteemed Contributor

That code should be

var features = FeatureSetByName($map, 'Kartirane geoloske jedinice', ['PreferisanaStarost'], true);
Distinct(features, 'PreferisanaStarost');
0 Kudos
BSBlagojevic
Regular Contributor

Thank you! Again problem!

BSBlagojevic_0-1758647240950.png

 

 

0 Kudos