Skip to main content
Version: 1.3.7

FabricPowerBIDatasource

Signature

class great_expectations.datasource.fluent.FabricPowerBIDatasource(*, type: Literal['fabric_powerbi'] = 'fabric_powerbi', name: str, id: Optional[uuid.UUID] = None, assets: List[Union[great_expectations.datasource.fluent.fabric.PowerBITable, great_expectations.datasource.fluent.fabric.PowerBIMeasure, great_expectations.datasource.fluent.fabric.PowerBIDax]] = [], workspace: Optional[Union[uuid.UUID, str]] = None, dataset: Union[uuid.UUID, str])

Microsoft Fabric Datasource.

Semantic-Link

Methods

Signature

add_powerbi_dax_asset(name: str, dax_string: str, batch_metadata: Optional[BatchMetadata] = None) → PowerBIDax

Adds a PowerBIDax asset to this datasource.

Parameters

NameDescription

name

The name of this asset.

Returns

TypeDescription

PowerBIDax

The asset that is added to the datasource.

Signature

add_powerbi_measure_asset(name: str, measure: Union[str, List[str]], batch_metadata: Optional[BatchMetadata] = None, groupby_columns: Optional[List[str]] = None, filters: Optional[Dict[str, List[str]]] = None, fully_qualified_columns: Optional[bool] = None, num_rows: Optional[int] = None, use_xmla: bool = False) → PowerBIMeasure

Adds a PowerBIMeasure asset to this datasource.

Parameters

NameDescription

name

The name of this asset.

Returns

TypeDescription

PowerBIMeasure

The asset that is added to the datasource.

Signature

add_powerbi_table_asset(name: str, table: str, batch_metadata: Optional[BatchMetadata] = None, fully_qualified_columns: bool = False, num_rows: Optional[int] = None, multiindex_hierarchies: bool = False, mode: Mode = 'xmla') → PowerBITable

Adds a PowerBITable asset to this datasource.

Parameters

NameDescription

name

The name of this table asset.

Returns

TypeDescription

PowerBITable

The asset that is added to the datasource.

Signature

delete_asset(name: str)None

Removes the DataAsset referred to by asset_name from internal list of available DataAsset objects.

Parameters

NameDescription

name

name of DataAsset to be deleted.

Signature

get_asset(name: str) → great_expectations.datasource.fluent.interfaces._DataAssetT

Returns the DataAsset referred to by asset_name

Parameters

NameDescription

name

name of DataAsset sought.

Returns

TypeDescription

great_expectations.datasource.fluent.interfaces._DataAssetT

if named "DataAsset" object exists; otherwise, exception is raised.