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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
B_Smith
Frequent Visitor

SSAS Tabular - USERNAME() filtering

I have a Power BI file and I want to limit the drop down slicer filter to only options that a specific user name has available. I set up a security table and everything for RLS on the SSAS model...and it works great, with the exception of some "comparison measures". To make a reference we have a few measures that are aggregated at different levels (EX: All Sales vs Region Sales, etc.) 

 

And when RLS security is implemented those measures all appear the same because it (correctly) filters down to only rows that user has access for, making the aggregates exactly the same for the comparisons.

 

Is there any way to just filter the slicer by where an attribute on the user security table=USERNAME() within the power BI file?

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @B_Smith,

 

Nope, current RLS setting also disabled in live connection mode.

1.PNG

 

In my opinion, I'd recommend you to take a look at below article to add RLS by SSDT on SSAS side.

Tutorial: Dynamic row level security with Analysis services tabular model

 

Regard,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @B_Smith,

 

Nope, current RLS setting also disabled in live connection mode.

1.PNG

 

In my opinion, I'd recommend you to take a look at below article to add RLS by SSDT on SSAS side.

Tutorial: Dynamic row level security with Analysis services tabular model

 

Regard,

Xiaoxin Sheng

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.