Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
ddevogel
Frequent Visitor

Embedded DirectQuery connection strings with same target/different user interfering with each other?

Hi,

 

We have a single SQL Azure database with a schema per customer and a SQL user per schema that has access only to that schema. We then have a DirectQuery embedded report per customer that is sourced by the customer's schema. In the old workspace collection model we would save an instance of the report pbix in Desktop, deploy it and then update the database connection string based on the appropriate schema/user via the powerbi cli. That worked great.

In the new PowerBI service model (app.powerbi.com) we are deploying the customer's pbix to a customer specific workspace and setting credentials on its dataset but finding that those credentials are flowing to datasets in other workspaces that use the connection to the same server/database. The net result is that a previously loadable report will stop working because it no longer has access to its schema - apparently because it's using the most recently saved credentials from another workspace.

 

Is it no longer possible to do what we were doing in the workspace collection days - have a dataset connection string that varied from others only by username/pwd? Is a connection string that references the same server/database somehow global across workspaces in the new PowerBI or are we just setting ours incorrectly? Thanks for any hints or advice.

 

Dave

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @ddevogel,

 

Current I think only template content pack suitable for your requirement.

For power bi app, it still not support these functions, maybe you can submit an idea for your requirement.

 

BTW, I'd like to suggest you use power bi embedded to achieve dynamic report.(setting RLS based on username function)

3 ways to embed Power BI

RLS with UserName()

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks @v-shex-msft, I'm not sure a content pack will work in our case but I wanted to follow up with an idea I had that seems to be working. I've created a DNS alias to the reporting database server for each of our customers and am using those aliases as server names in each report's connection string. I think that's preventing PowerBI from reusing the single server name connection with potentially the wrong credentials. I'll follow up if I hit any snags with that approach but wanted to post in case anyone has this same issue.

 

Dave

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors