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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.