Follow me on LinkedIn - AI, GA4, BigQuery

The data type of a data source schema field determines the kind of data to expect (in the connected data source) when processing the field.

Data types

For example,

When the data type of a field is ‘Number’, it tells Google Data Studio to expect a number when processing the field:

dimension number

When the data type of a field is ‘Currency (US – Dollars) ’, it tells Google Data Studio to expect currency data in US dollars when processing the field:

currency 1

Similarly,

When the data type of a field is ‘Text’, it tells Google Data Studio to expect text data when processing the field:

The data type also determines which operations are allowed and not allowed on a data source schema field.

For example, you can’t apply an arithmetic function to a ‘Text’ field or use a ‘Number’ field as the date range dimension in a report.

If you want to change the data type of a field then just click on the drop-down menu next to a data type.

Note: Changing the field type can have a considerable impact on how you see your data in reports.

Table of Contents

Data types supported in Google Data Studio

Google Google Data Studio supports the following data types:

  1. Numeric
  2. Text
  3. Date and Time
  4. Boolean
  5. Geo
  6. Currency
  7. URL
  8. Image
  9. Image link

#1 Numeric data types

numeric

There are three numeric data types in Google Data Studio:

#1 Number – select this data type if you want Google Data Studio to expect a number (includes floating-point number) when processing a field in the underlying data source.

#2 Percent – select this data type if you want Google Data Studio to expect percentage data when processing a field in the underlying data source.

#3 Duration – select this data type if you want Google Data Studio to expect time duration in seconds when processing a field in the underlying data source.

For example, consider the following Google Sheets data source:

number

Here,

The field ‘Number of orders’ is of type ‘number’.

The field ‘Percentage of Sales’ is of type ‘percent’.

The field ‘Phone Call duration’ is of type ‘duration’.

When we connect this data source to our data source schema then while deciding the data source schema (structure) we should:

  1. set the data type of the field ‘Number of orders’ to ‘Numbers’.
  2. set the data type of the field ‘Percentage of Sales’ to ‘Percent’.
  3. set the data type of the field ‘Phone Call duration’ to ‘Duration’.
number data type

To learn more about numeric data types in Google Data Studio, read the following article: Working with Numeric Data Types in Google Data Studio.

#2 Text data type

text data type

When you create or edit a data source schema in Google Data Studio, you get the option to select the data type of the data source schema field. 

One of the data types supported by Google Data Studio is: ‘Text’:

text data type

Select the ‘Text’ data type if you want Google Data Studio to expect text when processing a field in the underlying data source.

A text data type can include any combination of letters, numbers, special symbols (like [, }, @….) and other characters.

customer name

Consider the following Google Sheets data source:

Here all the values of the field ‘Customers Name’ are of type ‘Text’.

So when defining the data source schema, we would set the data type of the field ‘Customers Name’ to ‘Text’:

A number formatted as ‘plain text’ in your data source is considered as of type ‘text’ by Google Data Studio.

You would know a number has been formatted as ‘plain text’ in a data source if it is aligned to the left (instead of the right). 

For example:

text vs number

These seemingly trivial mistakes can make a huge difference in your reporting. 

That’s why it is so important that you format your data correctly before you use it in Google Data Studio. 

#3 Date and time data types

date and time

As you can see from the screenshot, Google Data Studio supports several different types of date and time.

The data types for ‘date’ fields can be divided into the following two categories:

#1 Absolute dates – It refers to a specific date that you can point to on a calendar.

#2 Relative dates – It refers to a date that you can not point to on a calendar.

The data types for ‘time’ fields can be divided into the following two categories:

#1 Absolute time – It refers to a specific time that is accompanied by an absolute date.

#2 Relative time – It refers to a specific time that is not accompanied by an absolute date.

To learn more about the date and time data types in Google Data Studio, read this article: Tutorial on Date and Time Data Types in Google Data Studio.

#4 Boolean data type

If a data field in your data source can have only one of the two possible values: true or false then you should use the Boolean data type while setting up your data source schema:

forcasted revenue

To learn more about working with the boolean data type, read this article: How to work with Boolean data type in Google Data Studio.

#5 Geo data types

Geo

Use ‘Geo’ data type if you want Google Data Studio to expect a geographic region (like a city, region, country, continent) when processing a field in the specified data set.

The following are the various Geo data types available in Google Data Studio:

geo data type

To learn more about the geo data types, read this article: Geo Data – Country, Region, Latitude, Longitude in Google Data Studio.

#6 URL data type

Product page

Use the ‘URL’ data type if you want Google Data Studio to expect a URL when processing a field in the underlying data source:

underlying data source

#7 Currency data type

currency shipping

Use the ‘Currency’ data type if you want Google Data Studio to expect a currency when processing a field in the underlying data source.

#8 Image data type

image data type

Use the ‘Image’ data type if you want Google Data Studio to expect the URLs of images when processing a field in the underlying data source:

underlying data source 2

Follow the steps below to use the image data type in Google Data Studio:

Step-1: Navigate to your Google Data Studio account and then click on the ‘Create’ button:

create button 2

Step-2: Click on the ‘Data Source’ option to create a new data source schema:

Create data source 2

Step-3: Find and click on the Google Sheets connector:

Google sheets 2

Step-4: Select your Google Sheets data source:

Google sheet name 1

The selected Google Sheets data source contains the following data:

new schema 2

This data source contains a field called ‘Product Images URL‘ which contains the URLs of product images. This type of field is called an image field.

Step-5: Click on the ‘Connect’ button at the top right-hand side:

connect 3

Your new data source schema is going to look like the one below:

Product sheet 3

Step-6: Set the data type of the ‘Product Images URL‘ field from ‘URL’ to ‘Image’:

product image url
change to image
change data tupe to image 1

The ‘Image’ data type is used for only those fields which return data of type image. The image fields are used to display images in the data table of a report.

Step-7: Click on the ‘Create Report’ button to create a new report from the data source schema:

create report 2

Step-8: Click on the ‘Add to report’ button:

Add to report

Google Data Studio will automatically create a new table in your report:

product report 2

Step-9: Drag and drop the following fields one by one from the ‘Available Fields’ section to the ‘Dimensions’ section:

  • Product Images URL
  • Product Cost
new field

Step-10: Remove the ‘Record count’ metric by clicking on the cross button next to it:

remove record 1

Your data table is now going to look like the one below:

report image 2

Step-11: Re-size your data table so that you can see all the product images

Step-12: Click on the ‘View’ button (on the top right-hand side of your screen) to view your report in the view mode:

view report 3

In view mode, your data table is going to look like the one below:

View report 2

Note(1): The type of images that are generally added to a data table are product thumbnails or video thumbnails.

Note(2): The size of the image displayed in a table depends upon the width of the column containing the image. So the bigger the column width, the bigger the image will be.

Note(3): The image fields only work in tables. If you change the chart visualisation type, any image field in the chart will be ignored by Google Data Studio or the image URL will appear as the dimension value.

image link data type

The ‘Image Link’ data type is used for those fields which contain clickable images.

If you want to display clickable images in the data table of a report then you would need to use a field of the ‘Image Link’ data type.

Follow the steps below to use the ‘Image Link’ data type in Google Data Studio:

Step-1: Navigate to your Google Data Studio account and then click on the ‘Create’ button:

create button 1

Step-2: Click on the ‘Data Source’ option to create a new data source schema:

Create data source 1

Step-3: Find and click on the Google Sheets connector:

Google sheets 1

Step-4: Select your Google Sheets data source:

Google sheet name

The selected Google Sheets data source contains the following data:

new schema 1

This data source contains a field called ‘Product Images URL‘ which contains the URLs of product images. Such type of field is called an image field.

Step-5: Click on the ‘Connect’ button at the top right-hand side:

connect 2

Your new data source schema is going to look like the one below:

Product sheet 2

Step-6: Change the data type of the ‘Product Images URL‘ field from ‘URL’ to ‘Image’:

change data tupe to image

Step-7: Click on the ‘ADD A FIELD’ button to create a new calculated field:

add afield 1

Step-8: Name the new calculated field ‘Clickable Images‘ and then define it like the one below:

clickable image

Here I have used the ‘HYPERLINK‘ function which returns a hyperlink.  But in our case, this function is used to return clickable images. 

Following is the syntax of the ‘HYPERLINK’ function:

    HYPERLINK(URL, Link Label)

URL‘ refers to the full URL of the link location. In our case, it is the ‘Product Pages’ field. This field contains the full URL of the link locations.

Link Label‘ refers to the text or image to display as the link. In our case, it is the ‘Product Images URL’ field which is an image field. This field contains all the images which I want to make clickable.

Step-9: Click on the ‘Save’ button and then click on the ‘All Fields’ button in order to navigate back to the data source schema editor:

all fields 1

You should now see the new calculated field of type ‘Image Link’:

image link data type 1

Step-10: Click on the ‘Create Report’ button to create a new report from the data source schema:

create report 1

Step-11: Click on the ‘Add to report’ button:

Add to report

Google Data Studio will automatically create a new table in your report:

product report 1

Step-12: Drag and drop the following fields one by one from the ‘Available Fields’ section to the ‘Dimensions’ section:

  • Clickable Images
  • Product Cost
add field

Step-13: Remove the ‘Record count’ metric by clicking on the cross button next to it:

remove record

Your data table is now going to look like the one below:

report image 1

Step-14: Re-size your data table so that you can see all the product images

Step-15: Click on the ‘View’ button (on the top right-hand side of your screen) to view your report in the view mode:

view report 2

In view mode, your data table is going to look like the one below:

View report 1

If you now click on an image (book cover), you would be redirected to the corresponding link location. That’s how you can add clickable images to the data table in your report.

  1. Google Data Studio Parameters explained with examples.
  2. Google Data Studio Tutorial.
  3. How to Change Language in Google Data Studio.
  4. Google Data Studio Report Tutorial.
  5. How to work with Boolean field in Google Data Studio.
  6. How to use Google Data Studio with Google Sheets.
  7. Stop Using Page Titles in GA4 & Google Data Studio Reports.
  8. Google Data Studio Geo Map – Latitude Longitude.
  9. Google Data Studio Data Sources – Tutorial.
  10. Guide to Data Types in Google Data Studio.
  11. Google Data Studio Date Format and Time Explained.
  12. Working with Numeric Data Types in Google Data Studio.