Relationship#
Bases: SsasRenameRecord
TBD.
SSAS spec: Microsoft This class represents a relationship between two tables in a Tabular model.
Source code in pbi_core/ssas/model_tables/relationship/relationship.py
relationship_storage2_id
class-attribute
instance-attribute
#
wtf these are two different fields in the json??!!??
relationship_storage2id
class-attribute
instance-attribute
#
wtf these are two different fields in the json??!!??
from_column #
The column in the from_table used to join with the to_table.
from_table #
Returns the table the relationship is using as a filter.
Note
In the bi-directional case, this table is also filtered
Source code in pbi_core/ssas/model_tables/relationship/relationship.py
model #
parents_base #
Returns all tables and columns this Relationship is dependent on.
Note
Although relationships have direct links to tables via the from_table_id and to_table_id,
they are actually dependent on the columns that make up those tables. Therefore, recursive=False
returns only the from_column and to_column as dependencies.
Source code in pbi_core/ssas/model_tables/relationship/relationship.py
to_column #
The column in the to_table used to join with the from_table.
to_table #
Returns the table the relationship is being filtered.
Note
In the bi-directional case, this table is also used as a filter