Forum Discussion
Can we connect to Power BI's datamart using Python?
- 1 year ago
Hi OmarE,
Thank you for your response.
Please find below the key points when connecting Python to Power BI Datamarts, which may help in resolving the issue:
- SQL authentication (UID/PWD) is not supported for Power BI Datamarts.
- Users with Multi-Factor Authentication (MFA) must use Authentication=ActiveDirectoryInteractive, which will trigger a login pop-up for authentication.
- For users who do not have MFA enabled, Authentication=ActiveDirectoryPassword can be used. However, this method is only applicable if the organisation does not enforce MFA.
If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.
Thank you, GilbertQ , for your response.
Hi Anonymous,
We appreciate your inquiry on the Microsoft Fabric Community Forum.
Please refer to the following documents, which may help resolve the issue:
Introduction to datamarts - Power BI | Microsoft Learn
Administration of datamarts (preview) - Power BI | Microsoft Learn
Download ODBC Driver for SQL Server - ODBC Driver for SQL Server | Microsoft Learn
If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.