Use the Column Mapping tab of the Logical Table Source dialog to map logical columns to physical columns.
The physical to logical mapping can also be used to specify transformations that occur between the Physical layer and the Business Model and Mapping layer. The transformations can be simple, such as changing an integer data type to a character, or more complex, such as applying a formula to find a percentage of sales per unit of population. Applying these transformations is typically referred to as creating calculated items.
The data type of a logical column is determined by its logical table source mappings. For example, if a logical column has one physical source with a data type of VARCHAR(50) not-nullable, and another physical source with a data type of VARCHAR(20), nullable, then the data type of the logical column is VARCHAR(50) nullable. This final type is called a promoted type. Because of the rules governing logical table source mappings, you cannot map physical sources with data types that cannot be promoted such as an INT with a VARCHAR.
In the Column Mapping tab, in the Logical column to physical column mapping area, you can sort the rows (toggle among ascending order, descending order, and then restore original order) by clicking a column heading.
When you select a cell in the Physical Table column, a list appears. It contains a list of tables currently included in this logical table source.
When you select a cell in the Expression column, a list appears. It contains a list of physical columns currently included in this logical table source.
All columns used in creating physical expressions must be in tables included in the logical table source. You cannot create expressions involving columns in tables outside the source.
You can use Expression Builder to create calculated items, in which formulas are applied pre-aggregation. For example, to create the measure "tons sold" using the columns units_sold and unit_weight, you apply a pre-aggregation formula (fact.units_sold*product.unit_weight), and then apply the aggregation rule
SUM in the measure object. Another example is using
CAST to transform a column of type
TIMESTAMP to type
DATE for faster display in Answers and other clients, for example,
CAST("DB"."."TABLE"."COL" AS DATE).
You can also conform sources by creating expressions that perform transformations on physical data. For example, you can use the
CAST function to transform a column with a character data type to an integer data type, to match data coming from a second logical table source. Other examples include using
CONCATENATE or math functions to make similar transformations on physical data.
See Answers for calculations that need to occur post-aggregation.
You can edit the logical table sources from which the column derives its data, or unmap it from its sources.
In the Logical Column dialog, the Column Source tab contains information about the logical column.