Creating
s with filters and conditional formatsThis guide explains how to create
s with filters and conditional formats.Introduction
Filter data in dashboards to display only the information that you find relevant.
s andThis guide uses the example of a Facebook Ads datastream. The procedure described below is similar in all other datastreams.
Concept
There are two types of filter:
-
filters
Use
filters to filter data at the level of individual s. This procedure is explained in this guide. -
Dashboard filters
Use dashboard filters to filter data at the level of dashboards and dashboard pages. For more information, see Creating a dashboard with filters.
For more information about the different ways to filter data in Explore & Present, see Filter types in Explore & Present.
Conditional formats highlight metric values that satisfy set conditions. The conditions are evaluated in order, from top to bottom. This means that each condition will override previous conditions, even if the value meets both conditions.
Prerequisites
Before you complete the procedure in this guide, perform all of the following actions:
-
Create a Facebook Ads datastream. For more information, see Collecting data from Facebook Ads.
-
Apply the correct Data Mapping for your datastream. For more information, see Introduction to harmonizing data.
-
Make sure that your data extract contains the following fields:
-
campaign_name
-
impressions
-
Procedure
Creating
sTo create
s, follow these steps:-
In the Explore.
, click -
Select the workspace you work with in Explore & Present.
-
Next to the View tabs at the top of the page, click
Create new view.
-
In the Dimensions panel, click Datasource to see the options for this field. Click Remove.
-
In the list in the dimension. This guide uses Campaign Name as an example.
, select a -
In the list in the metric. This guide uses Impressions as an example.
, select a
-
In the table that you have created in the middle of the page, click on one of the values in the Impressions column to see visualization options. Click All Campaign Names.
Adding a date range filter to the
sTo filter the date range of the data displayed in the
s, follow these steps:-
In the Date Range section, click the date picker.
-
Select the date range.
Adding a dimension filter to the s
To add a dimension filter to the s, follow these steps:
-
In the Widget Filters section, click
Add dimension filter.
-
In the Choose dimension drop-down menu, select Campaign Name.
-
In the Filter by drop-down menu, select a campaign name.
-
Click Exclude.
-
Click Apply.
As a result, data for the selected campaign is not displayed in the
s.Adding a metric filter to the s
To add a metric filter to the s, follow these steps:
-
In the Widget Filters section, click
Add metric filter.
-
In the Choose Metric drop-down menu, select Impressions.
-
Click the At least tab.
-
In the From field, write 10000.
-
Click Apply.
As a result, only campaigns with more than 10,000 impressions are displayed in the
s.Adding conditional formats to metrics
To add a conditional format to a metric, follow these steps:
-
In the Metrics section, click the metric to which you want to add a conditional format. This guide uses Impressions as an example.
-
Click
Conditional format.
-
In the Conditional format window, click + Add conditional format.
-
In the first drop-down menu, select the condition that the metric needs to meet. For this example, select > (greater than).
-
In the second drop-down menu, choose if you want to base the condition on a comparison with a value or with another metric. For this example, select Value.
-
Enter the reference value or select the reference metric. For this example, enter the value 12,000.
-
Set the conditional format that will be applied if the metric satisfies the condition. To do this, use the settings listed below. For this example, select Bold text and Indicator up
-
Font color
-
Background color
-
Bold text
-
Indicator
The Example box shows what the metric will look like when the conditional format is applied.
-
-
(Optional) Check Conditional formatting for the total row box to apply the formatting to the Total row.
-
(Optional) Click + Add conditional format to add another conditional format to the same metric.
-
Click Apply.
As a result, all Impressions metric values that are higher than 12,000 appear as bold text with an up indicator in the .