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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Using Username() in DAX with Row-Level Security

Hi 

Does the users has to have power bi account and login in so i can a parametrable power bi  report?

and so using username in dax with RLS

any help and thanks

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

Yes, the user has to be logged in for row level security to apply at the user level.  Take a look at this article on dynamic rls.

https://docs.microsoft.com/en-us/analysis-services/tutorial-tabular-1200/supplemental-lesson-impleme...

View solution in original post

ibarrau
Super User
Super User

Hi. Your question is not quite clear but let me try. Yes they have to login.

In order to use RLS in a report, all the users accessing to this report must have a pro account (or premium capacity and any account). When the login in the platform with their own professional account, the USERNAME() will resolve finding the email.

 

Regards,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi. Your question is not quite clear but let me try. Yes they have to login.

In order to use RLS in a report, all the users accessing to this report must have a pro account (or premium capacity and any account). When the login in the platform with their own professional account, the USERNAME() will resolve finding the email.

 

Regards,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

jdbuchanan71
Super User
Super User

Yes, the user has to be logged in for row level security to apply at the user level.  Take a look at this article on dynamic rls.

https://docs.microsoft.com/en-us/analysis-services/tutorial-tabular-1200/supplemental-lesson-impleme...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

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

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.