-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Markus Cozowicz <[email protected]>
- Loading branch information
Showing
40 changed files
with
190 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ def evaluate_dax_impersonation( | |
The DAX query. | ||
user_name : str | ||
The user name (i.e. [email protected]). | ||
Defaults to None which resolves to no user impersonation. | ||
workspace : str, default=None | ||
The Fabric workspace name. | ||
Defaults to None which resolves to the workspace of the attached lakehouse | ||
|
@@ -49,13 +48,10 @@ def evaluate_dax_impersonation( | |
|
||
dataset_id = resolve_dataset_id(dataset=dataset, workspace=workspace) | ||
|
||
if user_name is None: | ||
request_body = {"queries": [{"query": dax_query}]} | ||
else: | ||
request_body = { | ||
"queries": [{"query": dax_query}], | ||
"impersonatedUserName": user_name, | ||
} | ||
request_body = { | ||
"queries": [{"query": dax_query}], | ||
"impersonatedUserName": user_name | ||
} | ||
|
||
client = fabric.PowerBIRestClient() | ||
response = client.post( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.