Forum Discussion

cv77's avatar
cv77
Helper I
4 years ago
Solved

Conditionally display text if row level security returns no data

Hi,    We publish multiple reports to a workspaces, and users may have different row level access across the reports.  For example, a user may have access to a certain subset of the data in report1...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi cv77 ,

     

    There is no specific function, but the following solution can be used to solve it.

    It is to count your rows. If the user can't see the data, the count is empty, and no access permission is returned.

    You can create the following measure and put it into a card visual.

     

    Measure = IF(ISBLANK(MAX('username'[username])),"No access","Have access")

     

    Users with access can see the following

    Users without access can see the following

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.