Skip to main content
Version: 0.18.21

FabricPowerBIDatasource

class great_expectations.experimental.datasource.FabricPowerBIDatasource(*, type: Literal['fabric_powerbi'] = 'fabric_powerbi', name: str, id: Optional[uuid.UUID] = None, assets: List[Union[great_expectations.experimental.datasource.fabric.PowerBITable, great_expectations.experimental.datasource.fabric.PowerBIMeasure, great_expectations.experimental.datasource.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, order_by: Optional[SortersDefinition] = None, batch_metadata: Optional[BatchMetadata] = None) PowerBIDax#

Adds a PowerBIDax asset to this datasource.

Parameters
  • name – The name of this asset.

  • TODO – other args

  • order_by – A list of Sorters or Sorter strings.

  • 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]], order_by: Optional[SortersDefinition] = None, 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.

  • order_by – A list of Sorters or Sorter strings.

  • 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, order_by: Optional[SortersDefinition] = None, 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.

  • order_by – A list of Sorters or Sorter strings.

  • 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.