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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
mtzzwr
New Member

Check logged user

How do I check if the user who logged in to power BI is present in the table that he creates and whether or not he has access to Power BI data?

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@mtzzwr - Sorry, not quite understanding this. You can use USERPRINCIPALNAME function to get the identity of the user. USERPRINCIPALNAME function (DAX) - DAX | Microsoft Docs

 

Not quite understanding things beyond that in terms of what you are trying to do.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

V-pazhen-msft
Community Support
Community Support

@mtzzwr 
You would need to use USERPRINCIPALNAME to perform a dynamic RLS. Please refer to the below link:
USERPRINCIPALNAME – show user name and use it in RLS (DAX – Power Pivot, Power BI) – ExcelTown – kur...


Remember Report Server is not same as Power bi Service: Row-level security (RLS) in Power BI Report Server - Power BI | Microsoft Docs


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@mtzzwr 
You would need to use USERPRINCIPALNAME to perform a dynamic RLS. Please refer to the below link:
USERPRINCIPALNAME – show user name and use it in RLS (DAX – Power Pivot, Power BI) – ExcelTown – kur...


Remember Report Server is not same as Power bi Service: Row-level security (RLS) in Power BI Report Server - Power BI | Microsoft Docs


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@mtzzwr - Sorry, not quite understanding this. You can use USERPRINCIPALNAME function to get the identity of the user. USERPRINCIPALNAME function (DAX) - DAX | Microsoft Docs

 

Not quite understanding things beyond that in terms of what you are trying to do.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

can I define a condition to only perform a certain function if my table has the user who is logged in?

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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