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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

OS user

Hi all,

 

 i want to display  OS user name    like  Auth\MyNTname  

it should be dynamic. who ever open dashboard their NT name should disply.   is there any function ?

in QLikview  i use    =OSUser()    to display this.    in PBI?

2 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

HI @Anonymous ,

 

Try using USERNAME dax function in Power BI.

you can refer following link for details:

https://powerbi.microsoft.com/en-us/blog/using-username-in-dax-with-row-level-security/

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

Anonymous
Not applicable

@Anonymous 

 

CONCATENATE only works for 2 objects. You need multiple CONCATENATE and Format().

 

Access = CONCATENATE("Confidential: Data accessed ",
           CONCATENATE(USERNAME(), 
            CONCATENATE(FORMAT(NOW(),"YYYY/MM/DD HH:MM:SS"),"is responsible for keeping this data secure.")

 

 

Paul Zheng _ Community Support Team
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

5 REPLIES 5
Anonymous
Not applicable

@Anonymous 

Create this measure: 

 

Measure = CONCATENATE(USERNAME(),NOW())

 

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
  

Anonymous
Not applicable

Hi im getting error  while using this.  could you please help how to avoid this? 

 

whats wrong in this measure

 

 


Access= CONCATENATE("  Confidential: Data accessed",USERNAME(),NOW(),"is responsible for keeping this data secure.")

 

i want to show this  date  foramt   Date(Now(),'YYYY-MM-DD HH:MM:SS'

Anonymous
Not applicable

@Anonymous 

 

CONCATENATE only works for 2 objects. You need multiple CONCATENATE and Format().

 

Access = CONCATENATE("Confidential: Data accessed ",
           CONCATENATE(USERNAME(), 
            CONCATENATE(FORMAT(NOW(),"YYYY/MM/DD HH:MM:SS"),"is responsible for keeping this data secure.")

 

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Pragati11
Super User
Super User

HI @Anonymous ,

 

Try using USERNAME dax function in Power BI.

you can refer following link for details:

https://powerbi.microsoft.com/en-us/blog/using-username-in-dax-with-row-level-security/

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Yeah its working fine  but.  i want to show  current time running  in the dashboard along with Nt name,  like below.Auth.PNG

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.