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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.