cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Calvin69
Helper III
Helper III

RLS with Blanks

Hi experts,

I have a report that uses the RLS feature.

I established an external Excel sheet that lists all users names, emails, departments & Projects and linked to my code in RLS:

2022-11-12 01_44_49-Financial Report V1.5 - Power BI Desktop.png

In the current finance system "Data Source" we use dimenisons with our transactions, some transactions are tagged with Dept. or Project dimension values and some are not "no dimensions = Blank".

The problem I am facing when using the setup mentioned above is that all users are only able to see entries related to their permission within the excel sheet "Sample below" any none dimension related entries are not showing to them. As you can see below, each user do have a "Blank" cell in both Dept. and Project column but for some reason the dax code is ignoring all blanks.

 

Example of the pemrission matrix:

NameEmailDepartmentProject
BobBob@H.comA 
BobBob@H.comB 
BobBob@H.com K
DanDan@H.comH 
DanDan@H.com C

 

Is there a way for me to allow all users to see data based on their RLS setup and all Blanks "meaning entries with no dimensions?

 

Thanks

H

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Calvin69 , Try like

[email] = userprincipalname() || isblank(Table[department Project])

View solution in original post

5 REPLIES 5
RobinSellow
Frequent Visitor

Hi,

I have a problem with RLS in combination with blank cells. Hopefully you can help me. I have a RLS table and a services table. In the services table are some blanks. But this is information that also is important. I tried this: [E-mailadres] = USERPRINCIPALNAME() || isblank(fact_services[decl.id]), but this is not working. I also tried this in de services table, but unfortunately without succes. 

Is it possible to add a filter in every table to see the blank data with RLS? 

Can someone help me? 

HI @RobinSellow , do you have a sample file that you could share with us to work this out?

Hi all,

 

Here is how my dataset is built. I have a RLS table with user names, emailadressess and regions (id's). Every user may see an other region, so the dataset if filtered at region level. My RLS table is connected with the region table. The region table is connected with the facilitites table. Because in the region, there are multipe facilities active. And the facilities table is connected with the services table. In this table all the services are mentioned. A service can be fulfilled, then the column declaration_id is filled, but if a service is not fulfilled, than this cell is blank. But this information is also in the dashboard. The problem is that RLS is not showing blank cells, and now my data is not right. 

How can i fix this? 

Calvin69
Helper III
Helper III

@amitchandak Nailed it mate, Thank you loads....

amitchandak
Super User
Super User

@Calvin69 , Try like

[email] = userprincipalname() || isblank(Table[department Project])

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors