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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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