Hello again folks
I created a Groupby expression in arcade that shows the results I want and it works when I test
GroupBy($layer, ['PRStatus'], [ { name: 'Total', expression: 'PRStatus', statistic: 'count' } ])
When I add this expression to the popup I get a "No Information available" result, other fields are not displayed either
I would like to display the summery of the PR status field for the whole dataset (not the ROWID if possible)
Thanks again for your time
Aaron
results from TEST:
when I add this expression to the popup I get this result, other fields are not displayed either
popup
Solved! Go to Solution.
Hi @aroininen ,
In your example, you are returning a featureset that will display the test as you can see, but it will not show in the pop-up. You need to loop through the resulting features and form a text that can be displayed in the pop-up.
Please have a look at this post where you will find and example of how to do this: https://community.esri.com/t5/comunidad-esri-colombia-ecuador/incluir-reportes-estad%C3%ADsticas-en-... (the post is in Spanish but it contains some code blocks that show the way to process the information) or have a look at this blog post by Paul Barker: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/whats-new-in-arcade/
Hi @aroininen ,
In your example, you are returning a featureset that will display the test as you can see, but it will not show in the pop-up. You need to loop through the resulting features and form a text that can be displayed in the pop-up.
Please have a look at this post where you will find and example of how to do this: https://community.esri.com/t5/comunidad-esri-colombia-ecuador/incluir-reportes-estad%C3%ADsticas-en-... (the post is in Spanish but it contains some code blocks that show the way to process the information) or have a look at this blog post by Paul Barker: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/whats-new-in-arcade/
Thank so much this helped!!
Hi @XanderBakker ,
Could you please expand a bit on this with quick and dirty example?
I could manage to output values with this code:
var woNumber = $feature["wonumber"]
var woStagesSet = FeatureSetByName($map,"DdditionalDataset", ['wo', 't_code', 't_name'], false)
var filteredEQNumberSet = Filter(woStagesSet, 'wo = @woNumber')
var textForPopup = ''
for (var k in filteredEQNumberSet){
textForPopup += k.wo + k.t_code + k.t_name + TextFormatting.NewLine
}
return textForPopup
But the output looks not formatted and with no spaces. Ideally I would like to get the output as a table.
Could you please advise how to do this?
Thank you!
Regards