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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
U156531
Post Patron
Post Patron

Trying to determine the account behind the data model

I need to to know what account id is retreiving the data into my PBI desktop report. Does anyone know how I determine this?

 

Thanks

2 ACCEPTED SOLUTIONS
girishthimmaiah
Resolver I
Resolver I

The retrieval of the account in a Power BI Desktop report can be seen by the methods:

1. Power BI Desktop (Current User)
From the menu, click on File > Options and settings > Data source settings from the Path Editor.
Find the data source from the list and click Edit Permissions to see which account is being used.
2. Using DAX To Get For Logged-In User (For User Restricted Data)
If your report design uses Row-Level Security (RLS) or AAD authentication, you may create a measure to check for the logged-in user:

DAX
UserEmail = USERPRINCIPALNAME()
Add this measure to a table or card visual to see which account is running the report.
3. Power Query (If API or Cloud Data Is Used)
Open Power Query Editor (Transform Data).
On the menu, check View > Query Dependencies to determine the data source.
4. SQL Server (If Using SQL As A Data Source)
Let's say you are querying a database:

SQL
SELECT SYSTEM_USER;
This returns the SQL login used for the connection.

View solution in original post

Anonymous
Not applicable

Hi, @U156531 

Thanks for the reply from girishthimmaiah. When you log in to your account in Power BI Desktop and set the sensitivity tab, only accounts in your organization can log in to your personal account and open the pbix files you share. You can read the following document in the links.

Sensitivity labels from Microsoft Purview Information Protection in Power BI - Power BI | Microsoft ...
Apply encryption using sensitivity labels | Microsoft Learn

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum



View solution in original post

3 REPLIES 3
girishthimmaiah
Resolver I
Resolver I

The retrieval of the account in a Power BI Desktop report can be seen by the methods:

1. Power BI Desktop (Current User)
From the menu, click on File > Options and settings > Data source settings from the Path Editor.
Find the data source from the list and click Edit Permissions to see which account is being used.
2. Using DAX To Get For Logged-In User (For User Restricted Data)
If your report design uses Row-Level Security (RLS) or AAD authentication, you may create a measure to check for the logged-in user:

DAX
UserEmail = USERPRINCIPALNAME()
Add this measure to a table or card visual to see which account is running the report.
3. Power Query (If API or Cloud Data Is Used)
Open Power Query Editor (Transform Data).
On the menu, check View > Query Dependencies to determine the data source.
4. SQL Server (If Using SQL As A Data Source)
Let's say you are querying a database:

SQL
SELECT SYSTEM_USER;
This returns the SQL login used for the connection.

This great information! Is there a method to force the desktop pbi to use a different account other than the one I'm logged in with? 

Anonymous
Not applicable

Hi, @U156531 

Thanks for the reply from girishthimmaiah. When you log in to your account in Power BI Desktop and set the sensitivity tab, only accounts in your organization can log in to your personal account and open the pbix files you share. You can read the following document in the links.

Sensitivity labels from Microsoft Purview Information Protection in Power BI - Power BI | Microsoft ...
Apply encryption using sensitivity labels | Microsoft Learn

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum



Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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