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

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

Reply
Anonymous
Not applicable

connect two different users on same azure database on the same server different pbix files

Hi,

 

I have a challenge.

 

I have 2 pbix files. They are both connected to same Azure SQL server and same database.

 

BUT it is 2 different users in these 2 files. I thought the 2 files where stand-alone from eachother but when I change credentials in one file then when I open the other file the credentials are automatically changed there as well. How to create a unique source allthough it is same server and database?

 

The two different users access different data from the database. That is why I need different credentials.

 

Thanks!

 

/Kris

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

For same server name and same database name, Power BI Desktop only store a credential in Date source settings->global permissions, this is the reason why credentials are automatically changed there as well when you open other PBIX file.

In your scenario, I would recommend you create a single Power BI report using an admin account, and  then define Row Level Security in your dataset.



Regards,
Lydia

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

@Anonymous,

For same server name and same database name, Power BI Desktop only store a credential in Date source settings->global permissions, this is the reason why credentials are automatically changed there as well when you open other PBIX file.

In your scenario, I would recommend you create a single Power BI report using an admin account, and  then define Row Level Security in your dataset.



Regards,
Lydia

Anonymous
Not applicable

@Anonymous

 

Hi Lydia,

 

I'm only fetching this data from HQ and they only give us access with two user accounts for the different divisions. Does this mean that this is not possible to solve in Power BI Desktop or does a workaround exist?

 

Thanks!

 

/Kris

Anonymous
Not applicable

@Anonymous,


The workaround that i can think of is to use different server name or different database name in the two PBIX file.

Regards,
Lydia

Anonymous
Not applicable

@Anonymous

 

Is it possible to give a alias to the server or the db som that they can be separated by alias? Is that what you mean?

 

If that is possible, how do I do that?

 

Thanks!

 

/Kris

Anonymous
Not applicable

@Anonymous,

 Yes. You can set alias for the Azure SQL database, then it is possible to provide different server name in the two PBIX file.


Regards,
Lydia

Anonymous
Not applicable

@Anonymous

 

Thank you!

 

But then I assume that it is not possible to set alias on the server or DB in Power BI Desktop?

 

That would then be the solution since I then can have 2 servers in the list with 2 different log in credentials.

 

/Kris

Anonymous
Not applicable

@Anonymous,

In Power BI Desktop, it is not possible to set alias for server or database. You would need to use Powershell as described in the above blog.

Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors