I have a set of data that contains on each row a highway, start_mp. I want to find, for each highway, the min(start_mp) and the max_start_mp and combine them into a single row of data ordered like: HWY, MIN(START_MP), MAX(START_MP), other attributes.
Solved
Row of data with hwy and mp. i want to find unique hwy min(mp) and max(mp) and create a single row.
Best answer by courtney_m
You can do this with a StatisticsCalculator, then an AttributeManager.
In the StatisticsCalculator:
1. Set Attributes to Analyze to start_mp
2. Set a name for Minimum Attribute and Maximum Attribute
3. Then delete the default values for the rest of the Calculate Attributes
The data you want will come out of the Summary port of the StatisticsCalculator - you can connect this port to an AttributeManager to rename and remove attributes as needed.
-Courtney
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.