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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
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!

6 REPLIES 6
henriquesilveir
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.

 

Anonymous
Not applicable

Hi:

 

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.
Anonymous
Not applicable

Hi:

 

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. 

 

Anonymous
Not applicable

Hi:

 

Thank you @henriquesilveir

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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