Skip to main content
Version: 1.0 prerelease

PowerBIMeasure

class great_expectations.experimental.datasource.PowerBIMeasure(*, name: str, type: Literal['powerbi_measure'] = 'powerbi_measure', id: Optional[uuid.UUID] = None, order_by: List[great_expectations.datasource.fluent.interfaces.Sorter] = None, batch_metadata: Dict[str, Any] = None, batch_definitions: List[great_expectations.core.batch_definition.BatchDefinition] = None, measure: Union[str, List[str]], 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)#

Microsoft PowerBI Measure.

add_batch_definition(name: str, partitioner: Optional[great_expectations.core.batch_definition.PartitionerT] = None) great_expectations.core.batch_definition.BatchDefinition#

Add a BatchDefinition to this DataAsset. BatchDefinition names must be unique within a DataAsset.

If the DataAsset is tied to a DataContext, the BatchDefinition will be persisted.

Parameters:
  • name (str) – Name of the new batch definition.

  • partitioner – Optional Partitioner to partition this BatchDefinition

Returns:

The new batch definition.

Return type:

BatchDefinition

delete_batch_definition(batch_definition: great_expectations.core.batch_definition.BatchDefinition) None#

Delete a batch definition.

Parameters:

batch_definition (BatchDefinition) – BatchDefinition to delete.