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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors