Custom Measures
Sometimes, we require a specific measure to be set up on the fly, which is a combination of measures from the dataset. With Custom Measures, we can now create new measures that were not part of the existing data.
Currently, available calculation is:
Division of 2 measures (sum)
Division of 2 Measures (sum)
One example is to calculate the Loan-to-ratio value, where we take the total loan amount divided by the value.
Another example is to calculate the average price per item, where we take the total sales amount divided by the total sales quantity.
![Another example would be to calculate the average price per item, where we take the total sales amount divided by the total sales quantity.](../../image/uuid-b35e7a54-de47-5724-18bd-57d481f918fd.png)
You can edit or delete the Custom Measure at any point in time.
Can I compare Custom Measures with different time periods?
Yes, Custom Measures work like a standard key measure, where you are able to identify trends over time and set specific comparison periods.
Who can create custom measures?
Only Dataset Admins are allowed to create custom measures.
How do I create a Custom Measure?
On the Datasets page, select the 3-dot menu next to your dataset, and select Configure dataset.
Select Custom Measures.
Select Create custom measure.
Name your Custom Measure and select the corresponding numerator and denominator.
Where will Custom Measures appear?
Custom Measures display in Search and Missions, where you can curate the analysis further by adding filters and comparing across segments.
Set Up Averages and Ratios
Averages
Examples: Average sales per order, average quantity per customer, average cost per product.
To create averages, you need:
At least 1 measure (sales, quantity, cost, etc.)
At least 1 segment (customer id, department, office location, etc.)
Auto Insights will calculate all possible combinations of averages (for example, Average Sales by Department, Average Quantity by Office Location).
Set Measures and Segments
This can be set up in the data ingestion part.
![Set a column to be a segment](../../image/uuid-9cad6faa-575d-88ea-fa70-de6ebe2141b1.png)
Averages are calculated automatically by Auto Insights and available on Missions and Search.
![Custom_Measures_-_Averages.png](../../image/uuid-7c6fdb29-9e5e-fcea-122b-d9fdcf9f7c9a.png)
Ratio
Examples: Price (Sales over Quantity), Lending vs. Revenue ratio
To create a ratio:
You need a minimum of 2 measures.
Have admin access to the dataset.
Create a Ratio
To set up a ratio, go to Missions or Datasets > Edit Settings > Custom Measures.
![Custom_Measure_-_Create.gif](../../image/uuid-231eb94f-575e-ed98-517e-3b680627fd41.gif)
Make it Visible
Once you create a ratio, make sure it is set to visible. To do so, go to Set key measures for this dataset. Drag from the Hidden measures column to the Key measures column.
![Custom_Measure_-_Show.gif](../../image/uuid-06d090f6-f7e9-de7e-c381-c1568641625b.gif)