At a glance: Create customized subsets of your existing source data with no SQL or technical expertise needed. Data views let you modify, refine, and summarize the data, so you can share only what’s relevant with collaborators.
About data views
Data views let you create customized subsets of your existing data sources that you can share in collaborations, without changing the original dataset. They let you perform functions that modify, refine, and summarize the data so you can share only what’s relevant, keeping the data you share clear and focused, and all other data private and secure. Designed for non-technical users, no SQL knowledge, data expert, or data engineer is required.
Data view functions
With the data view builder, you can shape your data by applying the following key functions:
- Filter your dataset to focus on relevant information by applying conditions such as time range, category, or custom parameters.
-
Calculated fields enable you to:
- Transform the structure, format, or values in your data to generate new columns and extract insights from existing fields.
- Aggregate records to create meaningful summaries using functions like Sum, Average, Count, Min, and Max.
- Select fields to include only the columns you need in your data view, keeping your output clean and purposeful.
The data view builder
Create a data view
To get started creating a data view, follow the steps below:
Prerequisites
An AppsFlyer account with DCP access.
Step 1. Set the data view general details
-
In AppsFlyer, from the side menu, select Collaborate > Data Clean Room.
- From the main Sources tab (at the top), hover over the specific source you want to create the data view from, and click
(the Menu icon) at the end of the row.
-
Select Create a data view. You’re directed to the New data view page.
- Set the following fields:
- Data view name: Enter a name for the data view. This can be any unique name that will help you identify it. See the naming requirements and guidelines below.
- Description: Enter a description (optional). This appears as a tooltip when hovering over the data view name under the Sources tab. It's recommended to highlight the primary objectives and data manipulations performed.
Naming requirements and guidelines
- Make sure the name is unique among all other sources and sub-sources in your account. Otherwise, you won't be able to save it.
- For cloud integrations, the name doesn't need to match the file name.
- Name requirements:
- Length: 2-80 characters
- Valid characters:
- letters (A-Z, a-z)
- numbers (0-9), cannot be the first character of a name;
- Invalid characters:
- Spaces
- Underscore
- all other symbols or special characters
Step 2. Filter your data (optional)
You can apply filters to narrow down the data by using selected attributes, helping you focus on specific and relevant information.
To apply filters:
- Under Filters, click Filter data.
- Click Select column and select the relevant column from the dropdown menu.
- Select an operator.
- Enter a value.
- [Optional] Click + Condition to add a condition to the filter.
Note
- You can add as many conditions as needed, using the AND and OR operations.
- Multiple conditions are processed according to the standard logical order, with priority given to AND operations over OR.
- When using functions or filters on date-type fields (columns), ensure that the date values conform to the supported date format specific to the selected function. Any discrepancies may lead to suboptimal choices among the provided options.
Step 3. Create calculated fields (optional)
Calculated fields enable you to use functions to add new fields, change data format and values, or combine records using logic, calculations, or aggregation.
To create a calculated field:
- Under Calculated fields, click + New field.
- Enter a New field name.
- Click Set function, and select a function from the list of functions. The relevant fields for entering the required information are automatically added.
- For Aggregation fields: The Group by section will automatically open and you can select the field that defines how the aggregated data will be grouped.
- [Optional] Click + New field to add more Transformation or Aggregation fields. You can add as many as needed.
Group by
Group your data into meaningful categories when applying an aggregation. When you add an aggregation function, the Group by section opens automatically and lets you select the field(s) that determines how the data is grouped. For example, you can group results by country, user ID, or product line to calculate totals or counts for each group.
To select the fields to group by:
Click +Field to add fields.
Note: The first fields selected are the identifiers selected in the original source.
Once created, the new field is:
- Included in the Calculated fields section.
- Included in the list of fields available for use in all functions and filters.
- Included in the list of fields under the Select fields section.
List of functions and use case examples
Transformation functions
- IF: A conditional statement that executes different actions based on whether a specified condition is true or false.
- CONCAT: The concatenation of two strings
- CONST: Returns the parameter of the CONCAT function
- LEAST: Returns the lowest of two values
- GREATEST: Returns the highest of two values
Example: Transformation
You want to indicate products purchased from the collaborator while masking purchases from other brands you’re working with.
Aggregate functions
- COUNT: Returns the number of rows.
- SUM: Returns the sum of all values
- AVG: Returns the average of all values
- MIN: Returns the minimum values of two numbers
- MAX: Returns the Maximum values of two numbers
Example: Aggregation
You want to count the total number of purchases per user and sum the total price they paid.
Example: Aggregation with a condition
You want data on the latest purchases made by users located in Germany and who purchased P&G products.
Step 4. Select fields (optional)
The data view structure includes fields from the original data source and any custom data fields created within the data view builder. From here, you can remove fields or rearrange their order (Note that you'll need to retain at least one identifier field in the data view).
Note
- Adjusting the field type can only be done from the original source, not from the data view.
- If you created a new field that is using an aggregation function, the fields available in the selection will only be the ones that are in the Group by of the function.
- Removing a field from the selected fields will not affect the aggregation function results.
Adjust field types
Review each field and select the appropriate data type from the dropdown list beside it to change it.
Remove fields
You can remove any of the fields. If there are multiple identifier fields, you can remove all except one. A data view must contain at least one identifier field.
To remove a field:
- Hover over the right side of the field you want to remove.
- Click the dustbin icon that appears. The field now appears in the Removed section, with a Restore button that allows you to bring back the removed field.
- Click Save.
Restoring temporarily removed fields
When a field is removed from the list, it is placed under the Removed section. You can restore the field at any point as long as the field is part of the original source.
Step 5. Review and save your data view
Side panel
The side panel on the right side of the page presents two sets of data, one from the original source and one from the data view created from it. Each set includes the table name and description, the number of fields, and the number of rows, along with a sample table containing five rows of data. When functions and filters are applied to the data view, the side panel reflects these changes, enabling you to verify the data while modifying it, and compare it with the original version.
You can save the data view at any stage. Once saved, it is added under the original data source in the list of sources, and you can edit, share, or delete it.
To save the data view:
Click Save at the bottom of the page.
Step 6. Share your data view in a collaboration (optional)
Note: To associate a data view with a collaboration, you must either be the creator of the collaboration or be invited to it.
Use cases
This section outlines some common use cases for data views.
Common use cases
Data views are useful when you need to tailor and control access to data for different audiences or business purposes. Here are a few common scenarios:
-
Brand-specific reporting
If you're working with multiple brands using a single data source, you can create separate data views for each brand, showing only the data relevant to them. This keeps the data clean, focused, and compliant with privacy or competitive boundaries. -
Internal collaboration
Share tailored views with different teams, such as marketing, product, or sales, so each team sees only the fields and records that are meaningful to their work. This avoids confusion and ensures that each team is working with the right subset of data. -
Client data sharing
When sharing reports or insights with clients or external partners, data views let you exclude sensitive or irrelevant information while still providing full visibility into the data that matters to them. -
Category or region filtering
You can build views filtered by country, product line, or other dimensions, making it easier to focus on specific market segments or business units without cluttering reports with unrelated data. -
Data summarization
Apply aggregation to summarize key metrics, such as total purchases by region or user activity over time, so your collaborators see high-level insights instead of raw data.
Manage data views
The data views appear in the Sources tab, under the original source. You can edit the functions, filters, and fields, delete data views, or share them with collaborators.
Edit a data view
You can modify the data view description or the labels used in the description.
Delete a data view
To delete a data view:
- In AppsFlyer, from the side menu, select Collaborate > Data Clean Room.
- From the Sources tab, click the source name. The associated data views are shown.
- Hover over the data view to modify, and click Delete source at the end of the row.
A data view can also be deleted from a collaboration.
Note:
When you delete a data view:
- Collaborators lose access to the data views shared with them (associated) through a collaboration.
- Audiences based on the data view can no longer be used.
Share a data view
Share your data view with the collaborator and grant them the necessary permissions.
- In the Data Collaboration Platform, go to the Collaborations tab > specific collaboration.
-
In the collaboration dashboard, click the action menu on the upper right > Associated sources.
- Select your data view (source) from the dropdown menu to associate it with the collaboration.
Then click Save.
-
Optional: Set custom data permissions on the data view source.
You can set custom permissions (that is different than the general data permissions policy). To set custom data permissions on your data view source:
From the 3-dot menu next to the data view source, click Edit permissions.
- Set the permissions according to your preferences (learn about permissions), then click Save.
Note
You can only associate data views created from your sources.