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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
rambabunaidu
New Member

Dynamic connections implementation in Power BI

Hi,

 

Facing issue to Implement Dynamic connections in Power BI.

 Requirement:  

ConsumerID ServerName DatabaseName UserName Password

consumer1   server1         db1                    sa              1234

consumer2   server2         db2                    sa              1234

consumer3   server3         db3                    sa              1234

 Above details are the consumer info related which are available in SQL server table. 

Based on the Consumer login into the power bi, power bi needs to connect to related server and database using with username, password. for example, conusmer1 login into the power bi desktop then data should be get from server1,db1 using with username and password. same way for consumer2, consumer3. 

 

could you please help on the above requirement?

3 REPLIES 3
Anonymous
Not applicable

Hi @rambabunaidu,

 

Current power query not support to get login detail information and create a dynamic connection based on it.

Login details in Power Query

For your scenario, I'd like to suggest you post this requirement to power query related forum for further support.

 

In my opinion, I'd like to suggest you connect and combine these data source and create dynamic RLS to filter the records based on login user name.

Reference link:

Row-Level Security in Power BI Desktop

Power BI – Dynamic Row Level Security – Tips to get it working!

RLS with UserName()

 

Regards,

Xiaoxin Sheng

Its not in power Query. Development in Power bi desktop.

ConsumerID ServerName DatabaseName UserName Password

consumer1   server1         db1                    sa              1234

consumer2   server2         db2                    sa              1234

consumer3   server3         db3                    sa              1234

Table info like above. Suppose Consumer1 Login with his credentials to the Power bi desktop then data should be get from server1, db1. same way consumer2 login with his credentials then data should get from the server2, db2... Based on consumer Dynamically needs to connect to server and database.

If you need more info let me know.

Anonymous
Not applicable

Hi @rambabunaidu,

 

>>Its not in power Query. Development in Power bi desktop.

Power bi desktop use power query to connect these datasource.

 

Current power query not contains functions to get user info, it only available on dax and it is impossible to pass to power query level.  So I want to suggest you to connect and combine all datasources then use dynamic rls with dax function to filter these data.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors