|
POST
|
Thank you. Yes, being able to Divide multiple line features is an improvement from ArcMap in that sense, but with the result being out of order, it ultimately doesn't help.
... View more
02-06-2025
03:43 PM
|
1
|
2
|
2114
|
|
POST
|
@JMutunga Thank you for the reply. This is in a much larger context than just splitting a single line -- I was trying to keep the question short, but maybe I kept it too short. I have a sample frame of 50+ streams, and each stream needs to be split x times (in this instance, 9). This results in hundreds of line segments, each of which needs to be numbered recursively, downstream to upstream (in the same order as the larger streams that are being split). The sequential calculations I have are based on the ObjectID, where it does indeed matter in which order they are spit out. And actually, I have XTools Pro, which allows me to batch split, and then reorder as I need. However, I'm working with a partner who does not have access to XTools, so I'm trying to find a solution within ArcMap or Pro that isn't completely onerous.
... View more
01-31-2025
02:19 PM
|
0
|
0
|
2179
|
|
POST
|
I, for one, welcome our GIS overlords.... (not really, but I thought some accompanying snark would round this out)
... View more
01-30-2025
05:24 PM
|
0
|
0
|
746
|
|
POST
|
Hello All, In Pro 3.4.2, I'm using the Divide tool to split a stream line into 9 equal parts. Pretty basic. The processing preview looks fine.... But the new reaches, sorted by ObjectID, are out of order. Rather than the first reach being the downstream-most, it's second from the upstream-most. When I use the Split tool in ArcMap, it does this correctly (same data layer, same stream line). Any ideas why Pro would do this? Sounds like a bug to me.... Any thoughts would be greatly appreciated. Thanks! Janet
... View more
01-30-2025
01:23 PM
|
0
|
8
|
2233
|
|
IDEA
|
I would like to see more flexibility in determining a chart's value axis grid. Currently, there are no options on what value(s) will show up (other than the minimum). For this example, I get 0 and 100,000 -- that's it, and I can't adjust it. Yes, you can hover over the bars and get their amount, but visually this isn't ideal. The ability to set my own divisions, whether just tick marks on the x-axis or full grid lines, and whether labelled or not, would be very helpful (think of the similar flexibility we have in creating scale bars for maps). Yes, I could create a Guide(s), but the placement of the label is funky and not consistent with the other pre-set labels. Thanks - Janet
... View more
12-12-2024
03:13 PM
|
0
|
0
|
664
|
|
POST
|
Hello All, I figured out some code to give me the results I need. However, I cannot get this new serial chart to adjust as I use various Selectors in my Dashboard. For example, I have a Location Selector where the user can choose one or more of the 20 locations and all the other charts and indicators in the Dashboard filter when a location(s) is chosen. However, this new chart does NOT change, regardless of the Actions I have set up (and actually, it won't save the Actions that I do select). Do the Actions only work on charts that have not been created by Data Expressions? // Purpose: Divide two fields from the same layer to use in Dashboard's Serial Chart
//Access AGOL, using all attributes from one layer
var portal = Portal('https://arcgis.com');
var fs = FeatureSetByPortalItem(
portal,
'xyzx',
0,
['*'],
false
);
//Create empty dictionary
var ratioDict = {
'fields': [
{'name': 'CPUE', 'type': 'esriFieldTypeDouble'},
{'name': 'LocationCode', 'type': 'esriFieldTypeDouble'},
//{'name': 'SHRC_Year', 'type': 'esriFieldTypeString'},
//{'name': 'Month', 'type': 'esriFieldTypeString'},
//{'name': 'SHRC_Month_Num', 'type': 'esriFieldTypeDouble'},
{'name': 'TotalSteelhead', 'type': 'esriFieldTypeDouble'},
{'name': 'TotalTrips', 'type': 'esriFieldTypeDouble'},
],
'geometryType': '',
'features': []
};
var index = 0
//Loop through features in the featureset to populate dictionary
for (var feature in fs) {
ratioDict.features[index++] = {
'attributes': {
'LocationCode': feature ['LocationCode'],
//'SHRC_Year': feature ['SHRC_Year'],
//'Month': feature ['Month'],
//'SHRC_Month_Num': feature ['SHRC_Month_Num'],
'TotalSteelhead': feature ['TotalSteelhead'],
'TotalTrips': feature ['TotalTrips']
}
}
};
var fsd = FeatureSet(ratioDict)
//Get the sums grouped by a field
var fs_sums = GroupBy(fsd, ['LocationCode'], [
{name: 'TS_sum', expression: 'TotalSteelhead', statistic: 'SUM'},
{name: 'TT_sum', expression: 'TotalTrips', statistic: 'SUM'},
])
//Use GroupBy again, grouping by the same field but adding the needed ratio
var fs_quotient = GroupBy(fs_sums, ['LocationCode'], [
{name: 'TS_sum', expression: 'TS_sum', statistic: 'SUM'},
{name: 'TT_sum', expression: 'TT_sum', statistic: 'SUM'},
{name: 'CPUE', expression: 'TS_sum / TT_sum', statistic: 'SUM'}
]);
return fs_quotient Yes, it's giving the correct results: featureSet: LocationCode TS_sum TT_sum CPUE ROW__ID 1 16025 29963 0.534826285752428 0 2 109246 59358 1.840459584217797 1 3 69862 72864 0.9587999560825647 2 4 620 1270 0.4881889763779528 3 5 17095 29364 0.5821754529355674 4 6 12965 22088 0.586970300615719 5 7 1664 3514 0.4735344336937962 6 8 12748 16645 0.7658756383298287 7 9 11461 38642 0.29659437917292064 8 10 1710 5211 0.3281519861830743 9 11 1273 3793 0.33561824413393093 10 12 84 659 0.1274658573596358 11 13 1023 2433 0.4204685573366215 12 15 39536 31782 1.2439745768044805 13 16 28672 26977 1.0628313007376655 14 17 11571 13044 0.8870745170193193 15 18 22342 45025 0.49621321488062187 16 19 4805 4671 1.028687647184757 17 20 2103 3423 0.6143733567046451 18 My Dashboard, with 3 Selectors that filter all the charts and indicators except for the one in lighter blue (the one created by my above data expression). Ideally, the new chart would adjust when any Selector is used, and I get why only the Location Selector might work (since that's what the data expression is aggregated on), but it doesn't work. And unfortunately, the Statistics available in the Data Options for the chart are limited and don't allow me to do the calculation that I want, hence the need to create the data expression. Am I trying to do something too complicated for the current iteration of Dashboards? I would love some feedback if anyone has thoughts. Thanks! Janet
... View more
11-18-2024
06:39 PM
|
0
|
0
|
732
|
|
POST
|
Jen -- this is great!! I had not seen your Indicator hack before...I would never have figured this out on my own. It worked perfectly for my indicators, and the results adjusted as I used various selectors within the dashboard. YAHOO!! However, my charts are the other 50% of this problem. Do you have any thoughts on how I could incorporate this calculation for my charts? Thank you so much for your help!! Janet
... View more
11-01-2024
03:01 PM
|
0
|
1
|
2714
|
|
IDEA
|
When creating a chart or indicator or other type of feature in a Dashboard, I would love to see a Field Calculator (or something similar) to expand the kinds of calculations we can do, and eliminate the need to write 60 lines of code for a simple algebraic equation. I want to do more than what "Statistics" offers and I want to incorporate more than one field -- these expanded options need to result in fully interactive features regardless of the number of Selectors I include in the Dashboard. For example, with the current available options, I can't even create an average calculation from two fields. Thanks!
... View more
10-31-2024
05:53 PM
|
4
|
1
|
1114
|
|
POST
|
Hello All, I'm trying to make a simple algebraic calculation based on multiple fields from the same data layer, specifically, to divide one field by another. A hitch, perhaps, is that I need the input to this calculation to be filterable by multiple selectors from within the Dashboard, i.e. month, year, and/or location, so I don't want to group by any of these options. I need the resulting info to be used in both an indicator and in multiple charts. I saw something similar on GitHub, https://github.com/Esri/arcade-expressions/blob/master/dashboard/dashboard_data/CalculationAcrossFields.md , and mimicked that...but it doesn't work (and I don't quite understand Dictionaries, either, I have to admit). I get "Test execution error: Execution error - Invalid parameter. Verify test data." Any thoughts would be greatly appreciated. Thank you! //Divide two fields from the same layer
//Result must be filterable by multiple selectors within the Dashboard
var portal = Portal('https://arcgis.com');
var fs = FeatureSetByPortalItem(
portal,
'86ba934a1b4c4ff2ae8188a012256ffc',
0,
[
'TotalSteelhead',
'TotalTrips'
],
false
);
var ratioDict = {
'fields': {'name': 'CPUE', 'type': 'esriFieldTypeDouble'},
'features':
[{'attributes':
{'CPUE': Round((SUM(fs,'TotalSteelhead')/SUM(fs,'TotalTrips')),2)}
}]};
return FeatureSet(ratioDict)
... View more
10-31-2024
05:01 PM
|
0
|
3
|
2753
|
|
BLOG
|
Thank you, @JenniferAcunto ! Do actions not work the same way for stacked charts? I've been unable to link my stacked charts to other charts (non-stacked), indicators, and selectors in my Dashboard, so wondering if I'm missing something.
... View more
06-20-2024
02:22 PM
|
0
|
0
|
1903
|
|
POST
|
Ok, thanks to Esri tech help, I was able to figure out what I was doing wrong. I was using the ID of my Dashboard, when I should have used the ID of my hosted feature layer. And as for the layer number, that was spelled out in the REST Services Directory for the feature layer (the "View" link next to "URL" in the feature layer's Overview tab) -- I was referencing the wrong one. So now it works and I can aggregate data from my large data layer and create a stacked chart. Unfortunately, the stacked chart doesn't seem to like Actions...so still can't link it to the other charts, indicators, and selectors in the Dashboard.... Doh.
... View more
06-17-2024
01:30 PM
|
1
|
0
|
1889
|
|
POST
|
@PrachiPatel Were you able to figure out to create a serial chart in Dashboards with BOTH bars and lines? I have not been able to do this, even with aggregated data. I would appreciate any insights if you made this happen. Thank you! Janet
... View more
06-17-2024
01:19 PM
|
0
|
1
|
2850
|
|
POST
|
Hello All, I have a large data layer that I am using in a Dashboard, which includes a map, multiple selectors, indicators, and bar charts -- all derived from the one data layer and linked by Actions, and working fine. I would like to create a stacked chart, but am not able to do that out-of-the-box given the data layer's structure, so I'm trying to create a Data Expression that would help. I am new to Arcade...but I think I need to create a new feature set that sums up the data, and base my stacked chart on that. In playing around, I was able to make this work within the popup area of the map that's in the Dashboard: //Summing numbers using a different data layer
var fs = FeatureSetByName($map, "TestData 2019 2021",['Month_', 'Month_Num', 'LocationCode','HatcheryKept', 'HatcheryReleased', 'WildReleased'])
// Group counts by month
var fsGp = GroupBy(fs,
[ //fields/expressions to group statistics by -- see GroupBy reference https://developers.arcgis.com/arcade/function-reference/featureset_functions/#groupby
{name: 'Month', expression: 'Month_'},
{name: 'Month Number', expression: 'Month_Num'}
],
//statistics to return for each unique category
[
{name: 'HK by month', expression: 'HatcheryKept', statistic: 'SUM'},
{name: 'HR by month', expression: 'HatcheryReleased', statistic: 'SUM'},
{name: 'WR by month', expression: 'WildReleased', statistic: 'SUM'}
]);
return fsGp And it returns what I wanted: However, when I use this same script when creating a new chart in the Dashboard, it doesn't work as there are no Profile variables to choose from (why is that?). I've found some other examples that use the Portal function, so tried this instead of what I have in line 3 above: var portalItem = Portal('https://**unspecified**.arcgis.com/');
var fs = FeatureSetByPortalItem(portalItem, '3879c57518f74a69bb3c52xxxxxxxxxx', 0, ["*"], false); But I get "Test execution error: Unknown Error. Verify test data." Maybe this is just a newbie mistake, but I can't figure out how to reference the data layer I want. I don't even know what the layer ID is -- I don't see anything in the Feature Layer details -- I'm just parroting from examples I've seen. Does it not work because my data and dashboard are not public yet? Any insights would be greatly appreciated. Thank you!
... View more
06-07-2024
01:38 PM
|
2
|
1
|
2027
|
|
BLOG
|
Thank you for this! Would this same process work for Insights and Experience Builder examples?
... View more
06-03-2024
03:08 PM
|
1
|
0
|
11656
|
|
POST
|
Hello All, I am creating a Dashboard from a complex data layer. The Dashboard includes one map, 11 charts (in 3 groups that the user can scroll through), 3 indicators, and 3 selectors. I've been able to link Actions for all the various pieces and am getting the results I want as the user makes different selections. However, as I add more complexity to the charts, my data layer keeps getting larger and larger -- it's just a ginormous flat file. And since Dashboards don't aggregate data like Excel Pivot Tables, I can't create summation charts with my giant flat file of a data layer. I've tried to use multiple data layers in the same Dashboard, but I'm not able to get all the charts, indicators, and map to change (via Actions) if they are created from different layers. Am I missing something? Is it possible to connect all the pieces of a Dashboard using multiple data layers, even if one layer is simply an aggregate of the other layer? I'm happy to provide more details, but I didn't want this to be too long. Many thanks for any insights!
... View more
05-24-2024
02:40 PM
|
0
|
0
|
1142
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-27-2026 11:20 AM | |
| 1 | 02-06-2025 03:43 PM | |
| 1 | 08-26-2025 02:09 PM | |
| 6 | 02-27-2026 06:46 PM | |
| 1 | 02-19-2026 02:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-27-2026
11:09 AM
|