Skip to main content
Version: 1.2.1

FabricPowerBIDatasource

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

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

Adds a PowerBIDax asset to this datasource.

Parameters
  • name – The name of this asset.

  • TODO – other args

  • batch_metadata – BatchMetadata we want to associate with this DataAsset and all batches derived from it.

Returns

The asset that is added to the datasource.

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
  • name – The name of this asset.

  • batch_metadata – BatchMetadata we want to associate with this DataAsset and all batches derived from it.

Returns

The asset that is added to the datasource.

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
  • name – The name of this table asset.

  • table_name – The table where the data resides.

  • schema – The schema that holds the table.

  • batch_metadata – BatchMetadata we want to associate with this DataAsset and all batches derived from it.

Returns

The asset that is added to the datasource.

delete_asset(name: str) None#

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

Parameters

name – name of DataAsset to be deleted.

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

Returns the DataAsset referred to by asset_name

Parameters

name – name of DataAsset sought.

Returns

_DataAssetT – if named “DataAsset” object exists; otherwise, exception is raised.