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() 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
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