Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
78 | |
52 | |
37 | |
36 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |