Compartilhar via


ModelCalcDependencies Class

Convenience wrapper around the calculated dependencies of a semantic model. Always use the get_model_calc_dependencies function to make sure the dependencies are initialized correctly.

Inheritance
ModelCalcDependencies

Constructor

ModelCalcDependencies(dependencies_df: DataFrame, tom: TOMWrapper)

Parameters

Name Description
dependencies_df
Required
<xref:pd.DataFrame>

A DataFrame containing dependency data for all objects within the semantic model. This DataFrame includes information about object names, types, expressions, referenced tables, and other dependency details.

tom
Required

An instance of the TOMWrapper, used to interact with the semantic model. This allows for access to model objects and facilitates operations on tables, columns, and measures.

Methods

all_column_dependencies

Output an iterator of all the columns on which the specified object depends.

all_column_references

Output an iterator of all the columns which reference the specified object.

all_fully_qualified_measure_dependencies

Output an iterator of all fully qualified measures on which the specified measure object depends.

all_measure_dependencies

Output an iterator of all the measures on which the specified object depends.

all_measure_references

Output an iterator of all the measures which reference the specified object.

all_table_dependencies

Output an iterator of all the tables on which the specified object depends.

all_table_references

Output an iterator of all the tables which reference the specified object.

all_unqualified_column_dependencies

Output an iterator of all unqualified columns on which the specified column object depends.

used_in_calc_item

Identify the calculation item which reference a given object.

used_in_data_coverage_definition

Identify the data coverage definition which reference a given object.

used_in_rls

Identify the row level security filter expressions which reference a given object.

all_column_dependencies

Output an iterator of all the columns on which the specified object depends.

all_column_dependencies(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Column]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_column_references

Output an iterator of all the columns which reference the specified object.

all_column_references(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Column]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_fully_qualified_measure_dependencies

Output an iterator of all fully qualified measures on which the specified measure object depends.

all_fully_qualified_measure_dependencies(tom_obj: TOM.Measure) -> Iterator[TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.Measure>

The TOM measure object within the semantic model.

all_measure_dependencies

Output an iterator of all the measures on which the specified object depends.

all_measure_dependencies(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_measure_references

Output an iterator of all the measures which reference the specified object.

all_measure_references(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_table_dependencies

Output an iterator of all the tables on which the specified object depends.

all_table_dependencies(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Table]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_table_references

Output an iterator of all the tables which reference the specified object.

all_table_references(tom_obj: TOM.NamedMetadataObject) -> Iterator[TOM.Table]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.NamedMetadataObject>

The TOM object within the semantic model.

all_unqualified_column_dependencies

Output an iterator of all unqualified columns on which the specified column object depends.

all_unqualified_column_dependencies(tom_obj: TOM.Column) -> Iterator[TOM.Column]

Parameters

Name Description
tom_obj
Required
<xref:Microsoft.AnalysisServices.Tabular.Column>

The TOM column object within the semantic model.

used_in_calc_item

Identify the calculation item which reference a given object.

used_in_calc_item(tom_obj: TOM.Table | TOM.Column | TOM.Measure) -> Iterator[TOM.Table | TOM.Column | TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Union>[<xref:Microsoft.AnalysisServices.Tabular.Table>, <xref:Microsoft.AnalysisServices.Tabular.Column>, <xref:Microsoft.AnalysisServices.Tabular.Measure>]

An object (i.e. table/column) within a semantic model.

used_in_data_coverage_definition

Identify the data coverage definition which reference a given object.

used_in_data_coverage_definition(tom_obj: TOM.Table | TOM.Column | TOM.Measure) -> Iterator[TOM.Table | TOM.Column | TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Union>[<xref:Microsoft.AnalysisServices.Tabular.Table>, <xref:Microsoft.AnalysisServices.Tabular.Column>, <xref:Microsoft.AnalysisServices.Tabular.Measure>]

An object (i.e. table/column) within a semantic model.

used_in_rls

Identify the row level security filter expressions which reference a given object.

used_in_rls(tom_obj: TOM.Table | TOM.Column | TOM.Measure) -> Iterator[TOM.Table | TOM.Column | TOM.Measure]

Parameters

Name Description
tom_obj
Required
<xref:Union>[<xref:Microsoft.AnalysisServices.Tabular.Table>, <xref:Microsoft.AnalysisServices.Tabular.Column>, <xref:Microsoft.AnalysisServices.Tabular.Measure>]

An object (i.e. table/column) within a semantic model.

Attributes

dependencies_df

Return the DataFrame of calculated dependencies.

Returns

Type Description
<xref:pd.DataFrame>

DataFrame of calculated dependencies.