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
AnaCordeiro
New Member

Greeting Phrase - Sales Analytics Dashboard

Hi every body! I need a help, because I don't know of is possible or madness.

In the company I work for, we have a Power BI that serves as a query for our sellers, where they can view their orders.

And we want the first dashboard to have a greeting, like "Hello, 'here will have the name of de user who is logged in to Power BI online'".

Is that possible? And how can I do it?

I have tried using the formulas USERNAME, USEROBJETID and USERPRINCIPALNAME, but just brings me the user's email or a code, I would like the name to appear.

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi @AnaCordeiro ,

I find a topic and change it to satisfy your requirements: Solved: How to display Username with greetings when user ... - Microsoft Fabric Community

I create a table as you mentioned.

vyilongmsft_0-1715050473364.png

Then I create a calculated column and get what you want.

Greeting =
VAR user =
    USERNAME ()
VAR greeting1 = "Hello, 'here will"
VAR greeting2 = "is logged in to Power BI online'"
RETURN
    greeting1 & " " & user & " " & greeting2

vyilongmsft_1-1715050583633.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yilong-msft
Community Support
Community Support

Hi @AnaCordeiro ,

I find a topic and change it to satisfy your requirements: Solved: How to display Username with greetings when user ... - Microsoft Fabric Community

I create a table as you mentioned.

vyilongmsft_0-1715050473364.png

Then I create a calculated column and get what you want.

Greeting =
VAR user =
    USERNAME ()
VAR greeting1 = "Hello, 'here will"
VAR greeting2 = "is logged in to Power BI online'"
RETURN
    greeting1 & " " & user & " " & greeting2

vyilongmsft_1-1715050583633.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Alex87
Solution Specialist
Solution Specialist

You can use either USERPRINCIPALNAME or USERNAME to get the user's login name, you just need to either extract text before '@' delimiter for USERPRINCIPALNAME, or after the domain name '/' for USERNAME.

lbendlin
Super User
Super User

So you want to tell them what their own name is?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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