Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Not applicable

username() return NULL on publish service

Hi everyone:


I have a problem showing user in power bi publish service. 

I create an measures with DAX sencence:


UsuarioP = USERNAME()


usuarioFilter = LEFT(USERNAME();SEARCH("@";USERNAME())-1)


That measures in web desktop shows data OK:


UsuarioP show "user@....."

usuarioFilter show "user"


But after publish to the web, both shows NULL values.


Thank you!

Resolver IV
Resolver IV

@Anonymous hello, it happens when you publish it and use the Public Link, is the case?


when you use the Link inside the service with an user, aways will appear for you.


Not applicable



Yes @henriquesilveir, when i use web editor, it`s ok. But when i use public link, becomes blank.


Thank you.

You cannot do nothing.. Always in public link will apper (null).

And in tje service will show the user.
Not applicable



Ok, thank you.


I use that for filter (like a slicer) dashboards. How can i filter in public link?


Than you.

Hi @Anonymous You can duplicate some of your reports and apply a report filter. 


Not applicable



Thank you @henriquesilveir

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors