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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
chotu27
Post Patron
Post Patron

Handling Row Level Security

Hi,

 

I build row level security in power bi which is working fine as i expected.

 

But i wanted to display text field when someone  tries to access the report and his data is not available as "Your Information is not available"

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @chotu27 ,

 

I have a solution for you,see below:

First manage roles as below:

Screenshot 2020-11-24 143444.png

Then create a measure as below:

Measure = IF(SELECTEDVALUE('Table'[Column1])=BLANK(),"Your Information is not available",MAX('Table'[Column1]))

And you will see:

Screenshot 2020-11-24 143714.png

 

For the related .pbix file,you may see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @chotu27 ,

 

I have a solution for you,see below:

First manage roles as below:

Screenshot 2020-11-24 143444.png

Then create a measure as below:

Measure = IF(SELECTEDVALUE('Table'[Column1])=BLANK(),"Your Information is not available",MAX('Table'[Column1]))

And you will see:

Screenshot 2020-11-24 143714.png

 

For the related .pbix file,you may see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

collinq
Super User
Super User

Hi @chotu27 ,

 

I think that this is a good idea, but if a person can't see data, I would think that a message more similar to "Your permissions do not let you see this data" would be more effective.  That is because the message "Your information is not available" would make me think that there is a report problem, a Power BI problem or perhaps even a data source problem.  

I would suggest that you make an idea and post the link to it here as I would definitely vote for a message that said RLS was limiting a users ability to see a visual.

To do that yourself would require some sort of fancy conditional formatting AND, I am not quite positive that you even COULD do a conditional format on a RLS affected visual.  

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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