Skip to main content

Create a Static Lookup

This article provides information about creating a static data lookup in Nexla. Data lookups can be used to convert data values based on information in another data source—data lookups manage relationships between data values. In a static data lookup, changes in these relationships are managed manually.

For information about creating a dynamic lookup, which updates relationships between data values based on a data source that changes, see our article Create a Dynamic Lookup.

See the video below for an introduction to data lookups in Nexla, as well as an in-app walkthrough of the instructions provided in this article:

1. Create a Static Lookup

  1. On the toolbar on the left side of the screen, hover over Tools.png and click Lookups.png on the menu that appears.

  2. Click Create_Static_Lookup.png in the top right corner of the screen.

  3. Enter a name for the lookup in the Name field.

      Name.png

  4. Optional: Enter a description of the lookup in the Description field.

      Description.png

  5. Enter the data to be used for the lookup using one of the methods described in the following sections.

2. Enter Lookup Data in a Table

  1. To lookup enter data in a table within the Nexla platform, select the Enter_Data_in_Table.png tab.

    Two columns are initially provided. The first, labeled "key", is selected as the primary key value column by default.

  2. To edit a key name, click Edit_Column.png on the right side of the key header.

    1. Enter the desired key name in the Name field.

    2. Optional: Enter a key description in the Description field.

        Edit_Column_Window.png

    3. Click Save.png at the bottom of the Edit Property window to save the changes.

  3. Optional: To add a new key to the lookup, click Add_New_Colum.png to the right of the key headers.

      Add_Column.png

    1. Enter a key name in the Name field.

    2. Optional: Enter a key description in the Description field.

        Add_New_Key.png

    3. Optional: To designate this key as the primary key, check the box next to "Make primary key".

        New_Primary_Key.png

    4. Click Add.png at the bottom of the Add New Key window to save the new key.

  4. Click Add_New_Row.png below the column headers to add a new record to the lookup, and enter the desired value in each field.

      Table_Entries.png

  5. Optional: To remove a row from the lookup, click the Delete.png icon to the right of the row.

  6. Optional: To designate a different primary key , click Edit_Column.png on the right side of the desired key header, and check the box next to "Make primary key". Then, click Save.png at the bottom of the Edit Property window to save the change.

      Make_Primary_Key.png

  7. To enter a default value for a key column, click Edit_Column.png on the right side of the key header, and enter the desired default value in the Default text field. Click Save.png to save the default value.

      Default.png

  8. Proceed to Section 5

3. Enter Lookup Data as Raw Text

  1. To enter lookup data as raw text within the Nexla platform, select the Enter_Data_as_Raw_Text.png tab.

    Two columns are initially provided. The first, labeled "key", is selected as the primary key value column by default.

  2. Enter the lookup data in the Enter Data text field beginning on the second text line, with the values separated by commas and delimited by line breaks.

    The first text line contains the column names.

      Enter_Data.png

  3. Optional: Edit the column names by changing the text in the first line in the Enter Data text field.

      Edit_Key_Names.png

  4. Optional: To add another key column, add the desired key name to the first text line, separated by a comma.

      Add_Key_Text.png

  5. Optional: To change the designated primary key, use the pulldown menu labeled "Choose the primary key column" in the Column Configuration section.

      Choose_Primary_Key.png

  1. Optional: To provide default values for the key columns, enter the desired default value next to each lookup column name in the table labeled "Assign default values to columns" in the Column Configuration section.

      Assign_Default_Values.png

  2. Proceed to Section 5.

4. Load Lookup Data from a File

  1. To load lookup data from a local file, select the Load_Data_from_File.png tab.

  2. Click the Choose_File.png button to open a file explorer window, choose the file containing the desired lookup data.

    Lookup data can be uploaded from files in .csv format with values separated by commas and delimited by line breaks.

    The values in the first row of the file will be used as the corresponding key value column names.

  3. Preview and confirm the lookup data in the File Preview section.

      File_Preview.png

  4. Optional: To change the designated primary key, select the desired key using the "Choose the primary key" pulldown menu in the Column Configuration section.

      Choose_Primary_Key_Upload.png

  5. Optional: To assign default values to the key columns, enter the desired value in the Default Value text field to the right of each key in the table labeled "Assign default values to columns" in the Column Configuration section.

      Assign_Default_Values_Upload.png

  6. Proceed to Section 5

5. Save and Create the Lookup

  1. Once all lookup data has been entered, click Save2.png in the top right corner of the screen to save the lookup. This will close the Create Lookup screen, and the new lookup will appear in the Lookups list.

      Lookups_List.png