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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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