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.
Hi im trying to implement a kind of security to dashboard using ManageRole on desktop,
i have a dataset with fields UserName,IsUserHasAccess
usually IsUserHasAccess field has 3 different values (Y,N,*).
so here each user is having one of the value among these 3 (Y,N,*),
im passing UserName as a input Parameter now the out put for this should be passed to my Role
whether Y,N or *
how to implement this.
any ideas.
Solved! Go to Solution.
@Anonymous
No, you don't need to create a parameter. USERNAME() is a build-in function to return the "domain\username" of accessing user.
Regards,
@Anonymous
In this scenario, you can create a Table filter DAX expression in Manage Role like below:
IF ( LOOKUPVALUE ( Table[IsUserHasAccess], Table[UserName], USERNAME () ) = "Y", TRUE, FALSE )
Regards,
Thannks alot Simon,
do i need to create one Parameter(USERNAME()) first in Edit query or the below DAX creates.
@Anonymous
No, you don't need to create a parameter. USERNAME() is a build-in function to return the "domain\username" of accessing user.
Regards,
Thanks alot Simon this did work.
can you please reframe the expression,
if i have a Parameter with Name USERNAME while entering in to desktop it shoud pop up for this.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |