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
mbagwan
Frequent Visitor

M Query help needed to get USERPRINCIPALNAME()

I would like to filter the data based on loggedIn user email in Power BI desktop.

For an example, there are 5 people working in my organization and one report (.pbix) is shared with all of us. When I open the report on my desktop the I should only see my data (on which I've permission to see). 

I want to achieve this result through M query / Power Query.

 

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi , @mbagwan ;

You can refer to the following articles:

https://www.linkedin.com/pulse/power-query-filter-data-logged-user-wyn-hopkins

 

https://community.powerbi.com/t5/Power-Query/Get-username-in-Power-Query/m-p/972626

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

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.