Lookup Tables
Amplitude's Lookup Table integration lets you import your own data and map it to ingested properties to have an enhanced set of properties.
Lookup Tables can't exceed 100 MB or 1 million rows. Contact your Amplitude CSM if you have data that exceeds this limit.
You can also create and manage lookup tables through an API. For more information, refer to the Lookup Table API.
Set up the integration
Prerequisites
To set up this integration, you need the following:
An event property or user property to create a mapping from.
A CSV that has the data you want to map to:
- The first row must contain column names/headers.
- The first column must correspond to the mapping property value and must contain unique values. Lookup Tables search for exact matches, and are case-sensitive.
- Columns must be separated by commas.
- Rows must be separated by line breaks.
- If a field value contains commas or quotes, wrap the contents with double quotation marks (
"). The first double quote signifies the beginning of the column data, and the last double quote marks the end. If a string contains double quotes, replace them with single quotes.
Amplitude setup
- In Amplitude Data, click Catalog and select the Sources tab.
- In the Lookup Tables section, click CSV.
- Select a column in the CSV to be the key column.
- Map your property.
- When you're done mapping, click Finish.
Lookup tables and Portfolio
If your project has Portfolio enabled, create a Lookup Table through Lookup Properties:
- In Amplitude Data, navigate to the Properties tab.
- On the Properties tab, navigate to Lookup.
- Click +Create Lookup.
- Upload a CSV file, and map the primary column to an Amplitude property.
Update a lookup table
If you want to create a new lookup property, or that mapped property is wrong, you can update the lookup table.
- In Amplitude, navigate to Data Sources, then find the lookup table in the Sources table.
- Make your changes. You can change the mapping, or replace the CSV by uploading a new one.
- When finished, click Save Changes.
Delete the lookup table and its properties
When you no longer need a lookup table, you can delete it.
- In Amplitude, navigate to Data Sources, then find the lookup table in the Sources table.
- Click the trash icon.
- Follow the on-screen instructions.
Lookup table use cases
Use Lookup Tables to:
- Enrich data using ingested property values. You've captured an event called
Purchasedwith an event property namedSKU. TheSKUvalue alone doesn't hold much meaning. With your list of all the SKUs and their corresponding product names, you can create a new property calledProduct Namethat populates automatically based on that list. - Bulk update property values. You've captured a user property called
Language Codeand passed in language codes (en_US,fr_FR,de_DE, etc.). These codes are difficult to read, so you want aLanguageproperty that maps to friendlier values likeEnglish,French, andGerman. Create a new property calledLanguagethat maps the language codes to the language names. - Bulk filter long lists. You want to see user behavior for a specific region, and you have a list of all the customers and their regions. Use this to map each customer to a region, creating a new
Regionproperty. You can then filter to each region in a chart.
CSV example
The following CSV creates a new property called Language that maps to the SKU property. This CSV is an example implementation of the Bulk update property values use case from the previous section.
| SKU | Language |
|---|---|
| en_US | English |
| fr_FR | French |
| de_DE | German |
Was this helpful?