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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Arklur
Resolver II
Resolver II

Analysis Services - Dynamic filter for users not working

I'm trying to create a dynamic filter for my model, using the "[UserName] = USERNAME()" filter on my model, based on this tutorial video.

 

 

 

My problem is that it looks like it doesn't work (the user can see all data).

 

 

(Different colors mean different users.)

 

I checked the user is not an admin (neither on the server nor database). I guess I'm missing something, any idea what could it be?

3 REPLIES 3
Anonymous
Not applicable

@Arklur,

What mode do you use to connect to SSAS database in Power BI Desktop, import or connect live? Dynamics Row Level Security(RLS) only works in Connect Live mode. For more details, please review the following official article.

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-row-level-security-onprem-ssas-tabular

Regards,
Lydia

I'm using Connect Live.

Anonymous
Not applicable

@Arklur,

I am unable to reproduce this issue. Instead of using username() function, do you get same issue when defining DAX filter in fact table to restrict permission?

Regards,
Lydia

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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