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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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