Forum Discussion
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?
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
- Anonymous6 years ago
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.
5 Replies
- Pragati11Super 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
- AnonymousNot applicable
Yeah its working fine but. i want to show current time running in the dashboard along with Nt name, like below.
- AnonymousNot 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.
- AnonymousNot 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'
- AnonymousNot 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.