Using valid country names in Looker Studio (and how to fix any errors)

PUBLISHED 23 May 2023 - UPDATED 15 Aug 2023

How strict is Looker Studio when it comes to country names? What happens if you use an invalid country name? And how do you fix things when they go wrong?

How Looker Studio deals with invalid country names

This post is for anyone using country data with Looker Studio (formerly Google Data Studio). If the field containing your country names has an unknown or invalid value, Looker Studio won't give it the 'Country' type. Instead it sets that field to 'Text':

Looker Studio Country Dimension set to Text type

For example, take the country North Macedonia. Before 2019, this country was known by a variety of names including 'Macedonia', 'Macedonia, the Former Yugoslav Republic of', and 'FYR Macedonia'.

Looker, however, expects only the value 'North Macedonia'. So if you use a data source containing any of the other names, Looker will set your country field to a dimension with the 'Text' type.

This is almost certain to be the case if your data source predates 2019, but it's also possible with more recent data sources. The product analytics tool Mixpanel, for example, still uses the name 'Macedonia, the Former Yugoslav Republic of' and you'll find this value in country data exported from Mixpanel.

Why this is a problem

So your data source contains a list of countries and at least one unknown/invalid value. As a result, Looker Studio has set your country field to 'Text' rather than 'Country'. When you try to use that data source with, say, a geo chart in Looker Studio, you'll get the following error:

Chart configuration incomplete - Invalid/Missing dimensions, metrics, or filters.

The details for this error look like this:

Chart configuration incomplete error in Looker Studio

Also, in the geo chart setup tab, the field 'Geo dimension' will display 'Invalid dimension':

Geo dimension set to Invalid dimension in Looker Studio

And you won't be able to select your country field as the geo dimension.

How you can fix it

Fortunately, you can easily resolve this by manually changing the country field 'type' from 'Text' to 'Country'. Here's how:

  1. Go to Resource > Manage added data sources
  2. Click to EDIT your data source
  3. Change the Type of your Country dimension from Text to Geo > Country
  4. You will be asked to confirm your change. Click CONTINUE
  5. Click the blue DONE button in the top right
  6. Click CLOSE in the top right
  7. Now you can set your geo chart's geo dimension to your Country field

It gets more interesting! Once you have set your Country field to the 'Country' type and updated your geo chart, the chart will correctly display any values for 'Macedonia', 'Macedonia, the Former Yugoslav Republic of', or 'FYR Macedonia'. So there's no need to change the errant country name in the source data itself.

It seems slightly odd that Looker Studio is so strict about country names when it comes to identifying data type, yet much more relaxed when it comes to visualising that data. But it's much easier to change the type once than find and fix invalid country names, so that's probably for the best.

List of valid country names

Have you come here for a full list of country names that are valid in Looker Studio? Well, please use the names from:

I haven't extensively tested this list but it is recommended by Optimize Smart so that's good enough for me. And the list is certainly correct about North Macedonia!

Notify of
Inline Feedbacks
View all comments
James Clark
Hi! I'm James Clark and I'm a freelance web analyst from the UK. I'm here to help with your analytics, ad operations, and SEO issues.
What do you think? Leave a commentx
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram