USERNAME Function (DAX)
SQL Server 2012
Returns the domain name and username from the credentials given to the system at connection time
Returns the domain name and username from the credentials given to the system at connection time