When using Custom data import to import log or entity type dimension-only data, you might want to build reports that show the number of records. For example, when importing Leads from your CRM, you may want to create a dashboard that shows the number of leads in each status of your funnel.
You can achieve this by importing the data first and then using Supermetrics Custom fields feature to create the metrics.
Instructions
Step 1: Create the import
Create an import for your data using Custom data import. If you’re unfamiliar with creating an import, take a look at our guide to configure the import.
Step 2: Create the Custom field
Go to Custom fields to create a new field.
Create a new Custom field.
Select Metric as the field type.
Select Custom data import as the source.
Select the import you want to use from the Select report type dropdown.
Define the settings for your custom field:
Select Function as the transformation type.
Select Convert data type as the function.
For the Value, select a field from your import that resembles a unique identifier for the item you want to count, for example, Lead ID. Please note that if your imported data does not contain any unique identifier, you can use the Supermetrics-generated Row ID field to count values.
Select Integer for the Data type,
Select Static value as the default and enter a value of 1.
Click Next.
Give a name and description for your custom field.
Open Advanced settings.
Select Integer as the Output data type.
Click Create custom field.
Now you can use your newly created custom field in any Supermetrics product to query the number of records imported.