- 24 Nov 2023
- 3 Minutes to read
- Print
- DarkLight
Define related columns
- Updated on 24 Nov 2023
- 3 Minutes to read
- Print
- DarkLight
Some IQ Interface worksheets contain related columns. You can recognize related columns by the yellow-colored bar under the column header.
Some worksheets have pre-defined, related columns that are available to use immediately. In some cases, however, you must manually define a relationship between your target worksheet's primary data source and another worksheet's primary data source before you can add related columns from that other worksheet to the target worksheet.
Related columns are read-only. If you want to change values in a related column, you must do this in a worksheet that uses that column as its primary data source.
Learn how to:
- Define a relationship between two worksheets
- Add related columns to a worksheet
- Edit the related column settings
- Delete related columns from a worksheet
Define a relationship between two worksheets
You can create a relationship between worksheets. The worksheets can be in the same or different workbooks.
- In a worksheet or a workbook, select Properties.
- In the left panel, select Relationships.
Existing relationships for the worksheet's primary data source are listed in the Relationships area. If a relationship with the target worksheet is already defined, you can add related columns.
- Select New.
- From the Related Type dropdown, select Worksheet.
- From the Related Workbook dropdown, select the desired workbook.
- From the Related Worksheet dropdown, select a worksheet in the workbook.
- From the Join Type dropdown, select a join type:
- Left—Returns all records from this worksheet, and the matched records from the related worksheet.
- Right—Returns all records from the related worksheet, and the matched records from this worksheet.
- Inner—Returns records that have matching values in both worksheets.
- Outer—Returns all records (both matched and unmatched) from both worksheets.
- Cross—Returns each record from this worksheet combined with each record from the related worksheet.
- Specify which Source Column in this worksheet should be joined to a corresponding Related Column in the other worksheet.Important
To avoid configuration errors, only columns that match the data type of the Source Column are available in the Related Column dropdown. For example, you cannot join a column with a numeric data type to a column with a string data type.
- From the Operator dropdown, select the join condition:
- For source columns with string and Boolean data types, select one of these operators:
- Equals (=)
- Not equals (!=)
- For source columns with numeric, date, or datetime data types, select one of these operators:
- Equals (=)
- Not equals (!=)
- Less than (<)
- Less than or equal to (<=)
- Greater than (>)
- Greater than or equal to (>=)
- For source columns with string and Boolean data types, select one of these operators:
- Select Save. The primary data source for the other worksheet now appears in the gray-colored Relationships area.
- Select Go back to Workbook.
Add related columns to a worksheet
If your worksheet has at least one relationship defined, you can add any column from the related worksheet as a related column.
- In the worksheet, select Column and KPI Settings.
- Select Manage Columns, then select Manage Related Columns.
If the column you want to add isn't visible, select Manage Columns > Show Hidden Columns, then toggle Show on the column name to make it visible in the worksheet.
- In Manage Related Columns of your Worksheet:
- Select a worksheet, then select a related entity from the Columns list.
- Select Add for each related column you want to add.
- Select Save.
- Hide the Column and KPI Settings panel, then drag the new column's header label to the position you want in the worksheet.
Edit the related column settings
- In the worksheet, select Column and KPI Settings.
- On the Column tab, select the column you want to edit.
- Make changes in Column settings, then select Save.
Delete related columns from a worksheet
There are two different ways to remove related columns from the worksheet.
Hide a column but keep it in the worksheet
- In a worksheet, select Column and KPI Settings.
- On the Column tab, toggle Show on the column name.
Permanently delete a related column from the worksheet
- In a worksheet, select Column and KPI Settings.
- On the Column tab, select Manage Columns, then select Manage Related Columns.
- Clear the checkbox for each related column you want to remove from the worksheet.
- Select Save.