Forum Discussion

Lightbot's avatar
Lightbot
New Member
9 years ago
Solved

USERNAME() and USERNAMEPRINCIPAL() not working on published report.

Hi,   I'm trying to implement user based filtering using RLS as described here:   https://community.powerbi.com/t5/Community-Blog/Different-approach-to-Dynamic-Row-Level-Security/ba-p/80108   B...
  • Lightbot's avatar
    Lightbot
    9 years ago

    Hi Anonymous,

     

    When I signed into the report yesterday the measures were working fine, so my initial problem is solved.

     

    Thanks for the info about the admin rights, I had wondered that but the confirmation has helped testing.

     

    I've managed to solve my security problem using a simpler RLS:

     

    [Category] = LOOKUPVALUE(security_mapping[Category], security_mapping[Email], USERNAME())

     

    Thanks for the help.