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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Veles
Advocate V
Advocate V

RLS being ignored when showing items with no data

I've setup a RLS role that has two filters. I'm filtering out a particular category from a dimension table and all of the associated values from a fact table.

 

When I switch to the role, I can see that in the table view, the relevant rows on the dimension and fact tables are gone.

 

I have a visual that has "Show items with no data" selected on the dimension. When I switch to the role, the dimension is still visible in the visualbut it correctly shows no value against it.

 

Even though I have explicitly stated that this role should not see this dimension, it seems to be able to see it anyway when set to show items with no data.

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Veles,

 

I was not able to reproduce this scenario. Please provide more detailed description so taht I can replicate on my side. It would be better that you could post sample data and the screenshot of current resut you get.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

 

I'm not sure what you mean by "... stated that this role should not see the the dimension ..."

 

Basically you "just" reduce the rows of a certain table the role can access. If your DAX statement that you use to "restrict" access in such a way that there are no remaining rows. This effect is reflected by your observation

"... the relevant rows ... are gone"

 

The role you can configure in Power BI Desktop does not apply a security context to an object like a table, for this reason the "dimension" (a table) is still visible. Object level security is currently just available in Azure Analysis Services or on prem, unless you use the compatibility level 1400 (on-premises SSAS 2017 is needed): https://docs.microsoft.com/en-us/sql/analysis-services/tabular-models/object-level-security?view=sql...

 

Hopefully this answers your question.

 

Regards

Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors