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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

Top Solution Authors