Looker Studio

Sortable Date Comparisons in Looker Studio Tables

It’s really easy to add a comparison date range to a table in Looker Studio, you just enable ‘Comparison date range’ below ‘Default date range’ in the tables properties. This will add a column to the right of metrics showing percent change from the comparison period you specify.

The problem is, these comparison columns are not sortable. It’s nice to be able to see percent change, but sometimes you want to be able to see what has changed the most. We are going to accomplish this with a blend and the recently added conditional date filters.

Using trending organic queries as an example

As an example, we are going to build a report that shows the fastest growing organic queries based on clicks or impressions, using the Google Search Console data source, but the techniques here can be applied to any metric from any source.

Creating the blend

We’ll use a blend to get metrics from the last 30 days and metrics from the previous 30 days in the same dataset. Learn more about blends in my blog Mastering Data Blends: Looker Studio for Marketers.

  1. Add a Google Search Console Site Impression data source to your dashboard with search type ‘web’.
  2. Add a table to your dashboard with Query as the dimension and Impressions and Clicks as the metrics.
  3. Click ‘BLEND DATA’ below the data source name in the properties pane.
  4. Configure the blend
    1. Click ‘Join another table’ and add the same GSC Site Impression data source.
    2. Change the table names to ‘Query metrics last 30 days’ on the left, and ‘Query metrics 31-60 days’ on the right.
    3. Click ‘Configure join’ and set it to a Left outer join on Query.
    4. Select Custom for the Date range for both data sources and select Advanced, then set the Start Date to minus 60 days and the End Date to minus 1 day.
    5. Add a filter to the left side of the blend to Include Date Is On or After 30 Days ago.
    6. Add a filter to the right side of the blend to Include Date Is Before 30 Days ago and Is On or After 60 Days ago.
    7. Name and save your blend. The configuration should look like this:

Configuring the table


  1. Change the date range of the table to the last 60 days using an advanced filter.
  2. Add Impressions from the right side of the blend as a metric. Hover over the left site of the metric widget, click the pencil icon, rename it ‘Prev. impressions’ in the pop-up.
  3. Click to add a metric, and select ‘ADD CALCULATED FIELD’.
  4. Set the formula to:
    (Impressions (Query metrics last 30 days)-Impressions (Query metrics 31-60 days))/Impressions (Query metrics 31-60 days)
  5. Set the Data Type to Percent and the Display Format to Percent(0), and set the name to ‘Impressions delta’.
  6. Repeat steps 3-5 for Clicks, naming it ‘Clicks delta’.
  7. Go to the Style pane on the properties panel and set Missing Data to show “ – “.
  8. Change the display format of your delta columns from Number to Heatmap.
  9. Play around with formatting however you’d like.

This is what the finished product looks like:

Now you can click on the delta columns to see your top gainers! You can also play around with conditional formatting or additional filters to just show queries with more than a certain number of impressions. Note that you have to apply filters in the blend configuration – applying them to the chart generally won’t work.

The ability to sort by rate of change is a useful tool for finding the most impactful changes in your marketing data. 

Dig deeper in our Looker Studio how-to blogs

Nico Brooks

Nico loves marketing analytics, running, and analytics about running. He's Two Octobers' Head of Analytics, and loves teaching. Learn more about Nico or read more blogs he has written.

Recent Posts

Digital Marketing Updates: January 2025

This month we cover an intriguing study on search behavior and a fascinating trove of…

1 day ago

Analytics Roundup – Updates from December 2024

Musings on "what matters is measurable", new Looker Studio features, a cool free GA4 audit…

3 days ago

Digital Marketing Updates: December 2024

Google tests AI Sales Assistant with conversational advice; TikTok launches an AI tool to create…

1 month ago