USERNAME Function (DAX)

 

Returns the domain name and username from the credentials given to the system at connection time

USERNAME()  

Parameters

The username from the credentials given to the system at connection time

The following code verifies if the user login is part of the UsersTable.

=IF(CONTAINS(UsersTable,UsersTable[login], USERNAME()), "Allowed", BLANK())  

Community Additions

ADD
Show: