Hello Everyone,
I'm trying to group by five districts in our County and then subgroup by city. Here is the formula:
***************************************************
If {act_youth.app_city} in ['GARDEN GROVE', 'SANTA ANA', 'WESTMINSTER']
Then "District 1"
else
If {act_youth.app_city} in ['COSTA MESA', 'CYPRESS', 'FOUNTAIN VALLEY', 'GARDEN GROVE', 'HUNTINGTON BEACH',
'LA PALMA', 'LOS ALAMITOS', 'NEWPORT BEACH', 'SEAL BEACH', 'STANTON', 'BALBOA', 'CORONA DEL MAR',
'LIDO ISLE', 'ROSSMOOR', 'SANTA ANA HEIGHTS', 'SUNSET BEACH', 'SURFSIDE']
Then "District 2"
else
If {act_youth.app_city} in ['ANAHEIM', 'BREA', 'IRVINE', 'ORANGE', 'TUSTIN', 'VILLA PARK',
'YORBA LINDA', 'COWAN HEIGHTS', 'EL MODENA', 'LEMON HEIGHTS', 'OLINDA', 'OLIVE', 'ORANGE HILLS',
'ORANGE PARK ACRES', 'TUSTIN FOOTHILLS']
Then "District 3"
else
If {act_youth.app_city} in ['ANAHEIM', 'BUENA PARK', 'FULLERTON', 'LA HABRA', 'PLACENTIA']
Then "District 4"
else
If {act_youth.app_city} in ['ALISO VIEJO', 'DANA POINT', 'LAGUNA BEACH', 'LAGUNA HILLS',
'LAGUNA NIGUEL', 'LAGUNA WOODS', 'LAKE FOREST', 'MISSION VIEJO', 'RANCHO SANTA MARGARITA',
'SAN CLEMENTE', 'SAN JUAN CAPISTRANO', 'LADERA RANCH', 'COTO DE CAZA', 'LAS FLORES', 'NEWPORT COAST',
'TRABUCO CANYON']
Then "District 5"
*****************************************************
My problem is that two Cities "Garden Grove" and "Anaheim" are in multiple districts. I'd like to include records for these cities in both districts.
Does my request even make sense?
Thanks In Advance!
I'm trying to group by five districts in our County and then subgroup by city. Here is the formula:
***************************************************
If {act_youth.app_city} in ['GARDEN GROVE', 'SANTA ANA', 'WESTMINSTER']
Then "District 1"
else
If {act_youth.app_city} in ['COSTA MESA', 'CYPRESS', 'FOUNTAIN VALLEY', 'GARDEN GROVE', 'HUNTINGTON BEACH',
'LA PALMA', 'LOS ALAMITOS', 'NEWPORT BEACH', 'SEAL BEACH', 'STANTON', 'BALBOA', 'CORONA DEL MAR',
'LIDO ISLE', 'ROSSMOOR', 'SANTA ANA HEIGHTS', 'SUNSET BEACH', 'SURFSIDE']
Then "District 2"
else
If {act_youth.app_city} in ['ANAHEIM', 'BREA', 'IRVINE', 'ORANGE', 'TUSTIN', 'VILLA PARK',
'YORBA LINDA', 'COWAN HEIGHTS', 'EL MODENA', 'LEMON HEIGHTS', 'OLINDA', 'OLIVE', 'ORANGE HILLS',
'ORANGE PARK ACRES', 'TUSTIN FOOTHILLS']
Then "District 3"
else
If {act_youth.app_city} in ['ANAHEIM', 'BUENA PARK', 'FULLERTON', 'LA HABRA', 'PLACENTIA']
Then "District 4"
else
If {act_youth.app_city} in ['ALISO VIEJO', 'DANA POINT', 'LAGUNA BEACH', 'LAGUNA HILLS',
'LAGUNA NIGUEL', 'LAGUNA WOODS', 'LAKE FOREST', 'MISSION VIEJO', 'RANCHO SANTA MARGARITA',
'SAN CLEMENTE', 'SAN JUAN CAPISTRANO', 'LADERA RANCH', 'COTO DE CAZA', 'LAS FLORES', 'NEWPORT COAST',
'TRABUCO CANYON']
Then "District 5"
*****************************************************
My problem is that two Cities "Garden Grove" and "Anaheim" are in multiple districts. I'd like to include records for these cities in both districts.
Does my request even make sense?
Thanks In Advance!