Forum Discussion

somwanshi's avatar
somwanshi
Frequent Visitor
6 years ago
Solved

Username() function not working

Hi Everyone, Im trying to filter my visual with current logged in user (with out applying row level security) but it is not working. I have used following dax query for my measure.   New_Total A...
  • v-lid-msft's avatar
    6 years ago

    Hi somwanshi ,

     

    As the Online Document, The username() function will return the format as domain\user locally, if you always want to get UPN email address format, you can use the USERPRINCIPALNAME() function.

     

    Community Support Team _ DongLi
    If this post helps, then please consider Accept it as the solution to help the other members find it more