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
Anonymous
Not applicable

Not able to display userprinciplename() data

Hi All,

I am not able to get user login data by using USERPRINCIPALNAME() when i save and publish the report in PowerBi Services it display all data but my requirement is to display for example when i login the report from my id records will display along with my name and data but i am not getting exact records,it display all records ,could you please suggest me 

Mahamood218_1-1645094901609.png

 

 

 

Mahamood218_1-1645094412011.png

 

Mahamood218_2-1645094996441.png

 

 

 

 

 

5 REPLIES 5
Anonymous
Not applicable

@Greg_Deckler i  had applied realation b/w sheet1 and sheet2 tables and i am the login with power bi workspace with company id 

Mahamood218_1-1645096449378.png

 

@Anonymous So, is the login you are using a Member of the workspace? If it is, then RLS will not apply and you will see everything.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@Anonymous Hard to say exactly. Where is the data coming from in the table visual? Is there a relationship between Sheet2 and Sheet1? Remember that if you are a member of the workspace, RLS does not apply.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler i joined the link b/w Sheet 1 and sheet2 

Mahamood218_0-1645100633804.png

 

@Anonymous Yes, that is correct. What I am saying that even with that relationship and the RLS rule, if you are a member of the Workspace where the report is published then RLS will not apply and you will see everything.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.