Creating and Managing Lookup Tables - m3ter Documentation

Example Use Case

Suppose you run an online data storage service and bill end customers monthly in arrears by volume of data uploaded to your platform. You have customers in two countries - the US and UK. You want to offer your customers a running discount on their usage of your service and vary the discount rate on a month-by-month basis. At the end of each month, your Sales team will review customer Accounts and determine a discount rate for uploaded volume for the following month by country. To fulfill this kind of variable discounting use case, we can:

Creating a Lookup Table

You can quickly create a new Lookup Table from the Settings section of the Console.To create a Lookup Table:

  1. Select Settings>Lookup tables:

    The Lookup tables page opens.

  2. Select Create lookup table. The Create page opens.

  3. Under Lookup table details, enter a Name and Code.

  4. Select Create lookup table. The Lookup table details page opens:

Creating Lookup Table Revisions

When you create a Lookup Table Revision, you can define a schema for the data fields and types the Revision contains:

To create a Lookup Table Revision:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table you want to create a Revision for. The Lookup table details page opens.
  3. On the Revisions panel, select Create revision. The Create page opens.
  4. Under Revision details enter a Name for the Revision. ( Required)
  5. Under Revision fields, add the fields for the Revision:

Important: Using Multiple key fields! When using multiple key fields, the order is important because lookups will be performed sequentially. You can change the Revision fields order after adding them. See Using Multiple Key Fields - Checking Revision Schema Field Order.

  1. Select Create revision. You are returned to the Lookup table details page and the new Revision is listed:

Note that:

We’ve now defined the data field schema for a Lookup Table Revision to serve our variable discount rate example. Next, we’ll need to add some data values for that schema and publish the Revision. Publishing a Lookup Table Revision makes the data values configured for the Revision available for any Lookup functions used in calculations that reference the Lookup Table - see the following topic.