Lookup and Relation
1. Manual
2. Distinct Values
3. Lookup Table
1
Was this helpful?
PowerTable allows you to configure any field in the table using the single-select input type. The lookup and relation field is specifically designed for setting up single-select type columns.
In addition to manually configuring the dropdown options, PowerTable offers additional methods for sourcing values from dimensions, even if they reside in a different table or data source, through the use of lookup tables.
In summary, we have the following methods to configure the options:
Manual: Configure the dropdown options manually.
Distinct Values: Use the existing values in the column as a drop-down list with distinct options.
Lookup Table: Source values from another table in a database, which is usually done for foreign key fields.
This section will provide a detailed procedure for configuring dropdown values for each method.
This method allows you to type in the drop-down options and labels manually.
Let us take an example where the Product Color column options are set manually:
Adding options manually
Other options
You can now edit the table with the added dropdown options. PowerTable differentiates the single-select options by using different text-fill colors.
Selecting an option
When you select this option, PowerTable creates a distinct list of options from the existing values.
Existing values in the table
Distinct values
You can now choose the product name from the list of distinct values that has been created. Notice how the column values are color-coded to indicate a single-select dropdown list.
Selecting an option
PowerTable allows you to look up and source values from other tables as well.
Schema and lookup table details
Note: If there are any common columns between the lookup table and the current table, you can also set up filter criteria based on those matching columns. Only drop-down values that meet the filter criteria will be displayed, ensuring accuracy and ease of option selection.
Filter based on value in matching column
The existing sub-category keys are replaced with their corresponding sub-category names using lookup.
lookup values
For newly inserted rows, you can use the drop-down to select from these lookup values.
In the next section, we will look at the display settings.
Was this helpful?
Was this helpful?