Forum Discussion

vivien57's avatar
vivien57
Super User
3 years ago
Solved

RLS - Custom message for no access

Hello all, I would like to know if there is a way to customise an end-user message when a user cannot see the data because of the RLS. I would like to explain. Users see all the data a...
  • ValtteriN's avatar
    3 years ago

    Hi, 

    One way to approach this is to create this kind of measure:

    Measure 25 = if(ISBLANK(MAX('Table 6'[Value1])),"You don't have the access required",blank())

    Here I have set up a rls rule to table 6 and when user doesn't have rights to see the data the text in the message is displayed in KPI:

    When viewing with enough rights the message is blank:

     


    I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

    My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/