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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.