USERNAME

Updated on

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

Example

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

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

Other functions related to USERNAME are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/username-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy