I'm created a map in Google Data Studio using zip codes to fill certain area's within the map. However, only 3 zip codes are filled and the other's are not. I tried importing the zip codes as a CSV and Google Sheets and I'm getting the same results.
I made sure the column is being seen as zip codes. I'm not sure what the problem could be.
Data Set (Google Sheets):
zipcode-1 |
---|
06510 |
06511 |
06512 |
06513 |
06515 |
06519 |
06514 |
Google Data Studio report
The problem occurs as Google Data Studio would need to "guess" what the country is. This is because a zip code, while unique to a specific country may not be unique when considering all countries in the world (this also applies to other geo types such as city).
Explicitly stating the country would ensure that that values are specific.
This can be achieved using the format:
Geo Field, Country
The values would look like:
06510, United States
A CONCAT
of the Zip Code field (titled zipcode-1
) with a ,
followed by the Country (United States) would display the Geo
values as expected:
CONCAT(zipcode-1, ", ", "United States")
NOTE: In this specific case, the country has to be manually stated within ""
as there is no country field, however, if there is a Country
field, use: CONCAT(Geo Field, ", ", Country)
Geo > Postal Code
The output will look like:
zipcode-1 | Geo |
---|---|
06510 | 06510, United States |
06511 | 06511, United States |
06512 | 06512, United States |
06513 | 06513, United States |
06515 | 06515, United States |
06519 | 06519, United States |
06514 | 06514, United States |
Publicly editable Google Data Studio report (embedded Google Sheets data source) and a GIF to elaborate: