USERNAME is a DAX function that returns the domain name and user name of the current connection in the format domain-nameuser-name.
Syntax
USERNAME( )
Return Values
The username from the credentials given to the system at connection time
The following formula verifies if the user login is part of the UsersTable.
= IF(CONTAINS(UsersTable,UsersTable[login], USERNAME()), "Allowed", BLANK())
Related functions
Other functions related to USERNAME are:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy