Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

USERNAME

Applies to: 👁 Image
Calculated column 👁 Image
Calculated table 👁 Image
Measure 👁 Image
Visual calculation

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

Syntax

USERNAME()

Parameters

This expression has no parameters.

Return value

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())

Feedback

Was this page helpful?

Additional resources