Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In this Socrata module how-to we'll create an aggregate view to easily display a table of Seattle Building Permit dollar values by permit category.
- Seattle Building Permit endpoint: https://data.seattle.gov/resource/i5jq-ms7b.json
- Create a Socrata endpoint and view as described in the Socrata module documentation. In this case, we'll use the Seattle Building Permits endpoint above.
- Add the following fields to your view: "Seattle Building Permit Data: Category" (the category name for the permits) and "Seattle Building Permit Data: Value" (the dollar value for the permits) .
- Under Advanced -> Other, turn on aggregation for the view.
- For the Value field, click the "Aggregation settings" and change the "Aggregation type" to Sum. (The other "Aggregation type" values of Count, Average, Minimum or Maximum will be useful in other views you may create for other cases.)
- Now your view will aggregate the results, summing the permit values by permit category.
Attachment | Size |
---|---|
Use aggregation | 32.35 KB |
Field aggregation setting link | 33.6 KB |
Aggregation setting | 46.96 KB |
Aggregation display | 77.23 KB |