Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Username() not giving any value in Power BI Desktop/Service

Hi All,

I am very new to Power BI and trying to understand how RLS works. In the process, as a first step I am trying to get the username() value in the report, but it does not bring any value.

I created a measure and used it as below:

1.PNG

Can someone please help me out as to why it is showing blank.

Thanks

Poojitha

 

 

1 ACCEPTED SOLUTION

HI

Both funcion username and userpricipalname works when you place them in Table or card
If u just drag them to raport dosnt work (default is chart )

Desktop

obraz.png

Serwice

obraz.png

View solution in original post

6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Which type of account are you logged into Windows? Is it a guest account?

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
wzkoral
Advocate II
Advocate II

Anonymous
Not applicable

I followed the same steps but I still dont see any value.

HI

Both funcion username and userpricipalname works when you place them in Table or card
If u just drag them to raport dosnt work (default is chart )

Desktop

obraz.png

Serwice

obraz.png

Anonymous
Not applicable

From memory its because you are in the Power BI desktop and you aren't connected by a username.  Try publishing your report into your "My Workspace" and testing this again.  You'll likely find it will work there.

Anonymous
Not applicable

I published to Service and I still cannot see the username field. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors