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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Row Level Security User names / criteria?

Hi Guys,

 

I have been looking at various videos, blogs, documentations were it uses a simple filter to implement Row Level Security where as I would like to use just the user names to filter out information for the matching client names. Attached is a sample information where it seems very simple but it just fails. I have even used the video tutorial shared by Paul Turley and it seems to working fine for him but I copied step by step and it just fails. Any help here would be of great help here.

 

Paul Turley video: https://www.youtube.com/watch?v=GpinnvFTdVU

sample file with data: https://1drv.ms/f/s!Aj7kf6Fnqc5SwmD-8Jv-HKxKd9N8

 

Kind regards,

A!

1 ACCEPTED SOLUTION

@Anonymous here is simple change I made in your file to make it work, take a look. You can use "view as role" and test it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous it is pretty straight forward to implement, when you said fail, are you getting an error or it is not working as expected?

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@Anonymous here is simple change I made in your file to make it work, take a look. You can use "view as role" and test it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you @parry2k for the quick response and also to share the updated version of the .pbix file. Perhaps, I should have not focussed too much on the user principal function in the managerole filter option and should have used the simple logic.

 

Thank you for the file, it worked like a charm 🙂

 

Regards,

A!

Anonymous
Not applicable

Hi @parry2k,

 

I was able to succesfully test the content but this does not seem to be working for visuals which has been created already in my report. should I have to reference a binding factor in all the visuals to be able to use the RLS feature? as this does not seem to be working for slicers too 😞

 

Thanks in advance. 

Kind regards,

A!

@Anonymous not sure why it wouldn't work until I'm not seeing the full picture. Can you share how your data model looks like? Whch visuals are not getting filter? 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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