Skip to Content
Data ConnectivityLookup Tables

Lookup Tables

Lookup tables provide a way to map values from one domain to another within Inspire. They are useful for translating codes to labels, mapping IDs to names, or defining status-to-colour mappings.

Creating a Lookup Table

  1. Navigate to Data Sources > Lookup Tables
  2. Click New Lookup Table
  3. Give it a name (e.g. “Status Colours”, “Region Names”)
  4. Add entries as key-value pairs

Example: Status Colours

KeyValue
ok#27ae60
warning#f39c12
critical#c0392b
unknown#95a5a6

Example: Country Codes

KeyValue
GBUnited Kingdom
USUnited States
DEGermany
FRFrance

Using Lookup Tables in Formulas

Use the lookup() function to reference a lookup table:

lookup("Status Colours", status_field)

This returns the value from the “Status Colours” table that matches the current value of status_field.

With a default value

lookup("Status Colours", status_field, "#cccccc")

If no matching key is found, the default value #cccccc is returned.

Using Lookup Tables in Data Bindings

When binding an element property in the Designer:

  1. Click the link icon next to a property
  2. Choose Formula
  3. Enter a lookup() expression
  4. The property value is resolved through the lookup table at render time

Common Use Cases

Use CaseLookup TableUsage
Colour-code statusesStatus to colour hex codeBind element fill colour
Translate codesCode to human-readable labelBind text content
Map iconsCategory to icon nameBind icon property
Localise textKey to translated stringMulti-language displays

Managing Lookup Tables

  • Edit — Click a lookup table to modify entries
  • Import — Upload a CSV with key-value columns
  • Export — Download as CSV for backup or editing
  • Delete — Remove a lookup table (check formula references first)
Last updated on