On January 27, 2021, Google is changing the required permissions for attaching IAM roles to service accounts. If you are using IAM roles for your Google service accounts, please see Changes to User Management.
This example illustrates how you can use the following conditional calculation functions to analyze polling data:
SUMIF- Sum of a set of values by group that meet a specified condition. See SUMIF Function.
COUNTDISTINCTIF- Sum of a set of values by group that meet a specified condition. See COUNTDISTINCTIF Function.
Here is some example polling data across 16 precincts in 8 cities across 4 counties, where registrations have been invalidated at the polling station, preventing voters from voting. Precincts where this issue has occurred previously have been added to a watch list (
First, you want to sum up the invalid registrations (
invalidReg) for precincts that are already on the watchlist (
precinctWatchList = y). These sums are grouped by city, which can span multiple precincts:
|Parameter: Formula type||
|Parameter: Group rows by||
|Parameter: New column name||
invalidRegbyCityId column contains invalid registrations across the entire city.
Now, at the county level, you want to identify the number of precincts that were on the watch list and were part of a city-wide registration problem.
In the following step, the number of cities in each count are counted where invalid registrations within a city is greater than
- This step creates a pivot aggregation.
|Parameter: Row labels||
|Parameter: Max number of columns to create||
The voting officials in counties 2 and 3 should investigate their precinct registration issues.
This page has no comments.