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

2 REPLIES 2
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.

Top Solution Authors