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
j_w
Helper IV
Helper IV

How to highlight current login user?

How to add a boolean column (similar as below IsCurrentUser, value would be true or false) to flag current login user, and this new boolean column could be used in the conditional formatting to highlight the current login user's email in Power BI Service?

For example, when user2@abc.com logged into Power BI Service, user2 would see his record (user2@abc.com) highlighted in a color (e.g., green) in the email lists.

 

CurrentUser.JPG

 

Thanks

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi there

When you create a calculated column, it is ONLY updated when the data is refreshed.

As per the error below, you rather have to create a measure which you can then use to change the colours.

https://www.blue-granite.com/blog/controlling-conditional-formatting-using-dax




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi there

When you create a calculated column, it is ONLY updated when the data is refreshed.

As per the error below, you rather have to create a measure which you can then use to change the colours.

https://www.blue-granite.com/blog/controlling-conditional-formatting-using-dax




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ  thanks for your reply, it works perfect for Table visual.

 

Is it possible that similar highlight working for background color of Text box?

 

I have created an idea thought its not supported yet:

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/37813657-conditional-formatting-b...

 

Thanks for letting me know.

I think not right now, unless you used a table or matrix with one field?

That is a great idea, I will vote for that too.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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
Top Kudoed Authors