UserName (MDX)

 

Updated: March 2, 2016

Returns the domain name and user name of the current connection.

  
UserName [ ( ) ]  

The returned value is a string with the following format:

domain-name\user-name

The following example returns the user name of the user that is executing the query.

WITH MEMBER Measures.x AS UserName  
SELECT Measures.x ON COLUMNS  
FROM [Adventure Works]  
  

MDX Function Reference (MDX)

Community Additions

ADD
Show: