Skip to content

C# API

CSharpDict

The standard C# dictionary type.

Source code in pbi_prototype_query_translation\Translation.pyi
1
2
3
4
5
6
7
8
class CSharpDict:
    """The standard C# dictionary type."""

    Keys: list[str]
    """The keys of the dictionary as a list."""

    Values: list[str]
    """The values of the dictionary as a list."""

Keys instance-attribute

Keys: list[str]

The keys of the dictionary as a list.

Values instance-attribute

Values: list[str]

The values of the dictionary as a list.

DataViewQueryTranslationResult

Result of the query translation.

Source code in pbi_prototype_query_translation\Translation.pyi
class DataViewQueryTranslationResult:
    """Result of the query translation."""

    DaxExpression: str
    """The translated DAX expression for the given SSAS instance."""

    SelectNameToDaxColumnName: CSharpDict
    """Mapping from the names of the columns in the SELECT statement to the DAX column names."""

DaxExpression instance-attribute

DaxExpression: str

The translated DAX expression for the given SSAS instance.

SelectNameToDaxColumnName instance-attribute

SelectNameToDaxColumnName: CSharpDict

Mapping from the names of the columns in the SELECT statement to the DAX column names.

PrototypeQuery

Object representing a query prototype on the C# side.

Source code in pbi_prototype_query_translation\Translation.pyi
class PrototypeQuery:
    """Object representing a query prototype on the C# side."""

    @staticmethod
    def Translate(
        query: str, dbName: str, port: int, workingDirectory: str | None = None
    ) -> DataViewQueryTranslationResult: ...
    """Translates a query to DAX expression."""