Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How can we configure Power BI reports to connect to the appropriate database for each tenant in our SAS product, where all tenants have separate databases with identical objects and schema?
To connect Power BI reports to the appropriate database for each tenant in your SAS product, you can create a parameterized connection string in Power BI that allows you to dynamically switch between databases.
Here's how you can do it:
Create a parameter table that contains the database name for each tenant.
In Power BI Desktop, click on "Transform Data" to open the Power Query Editor.
In the Power Query Editor, select "New Source" and then select "SQL Server."
Enter the server name and database name of any tenant in your SAS product. This will create a connection to the database.
In the Power Query Editor, right-click on the connection you just created and select "Advanced Editor."
In the Advanced Editor, replace the database name with a reference to the database name parameter in your parameter table.
Save and close the Advanced Editor.
In the Power Query Editor, create a new parameter called "Tenant" that will be used to switch between databases.
Use the "Tenant" parameter in your query to dynamically switch between databases based on the value of the "Tenant" parameter.
Create a report based on the query.
Publish the report to the Power BI service.
In the Power BI service, create a new parameter called "Tenant" that will be used to switch between databases.
Use the "Tenant" parameter in your report to dynamically switch between databases based on the value of the "Tenant" parameter.
By following these steps, you will be able to configure Power BI reports to connect to the appropriate database for each tenant in your SAS product.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |