Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Team ,
I have a requiremnet , where I need to pass a UserID to a external hyperlink provided.
Say for example the external hyperlink is https/approval@companyname/userID(should come from power bi).
can you plese suggest me if this is possible ?
Solved! Go to Solution.
Hi @KrishnaNags ,
By userid, do you mean the currently logged in userid? You can use USERPRINCIPALNAME() which returns the email used in accessing the report. If the userid is not the same as the user email then you must have a table with the userid and the corresponding account email and then create a measure similar to below and categorize it to Web URL
hyperlink =
VAR _UPN =
USERPRINCIPALNAME ()
RETURN
CALCULATE (
SELECTEDVALUE ( usertable[userid] ),
FILTER ( usertable, usertable[user email] = _UPN )
)
Proud to be a Super User!
Hi @KrishnaNags ,
By userid, do you mean the currently logged in userid? You can use USERPRINCIPALNAME() which returns the email used in accessing the report. If the userid is not the same as the user email then you must have a table with the userid and the corresponding account email and then create a measure similar to below and categorize it to Web URL
hyperlink =
VAR _UPN =
USERPRINCIPALNAME ()
RETURN
CALCULATE (
SELECTEDVALUE ( usertable[userid] ),
FILTER ( usertable, usertable[user email] = _UPN )
)
Proud to be a Super User!
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |