Forum Discussion
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
- amitchandakSuper User
Anonymous , refer if this can help
https://querypower.com/2017/04/03/4-ways-to-get-username-in-power-query/
- v-yalanwu-msftCommunity Support
Hi , Anonymous ;
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.