Forum Discussion
Anonymous
9 years agoNot applicable
Parameter Output to Role as input value
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,...
- 9 years ago
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,
v-sihou-msft
9 years agoMicrosoft Employee
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,
Anonymous
9 years agoNot applicable
Thannks alot Simon,
do i need to create one Parameter(USERNAME()) first in Edit query or the below DAX creates.
- v-sihou-msft9 years agoMicrosoft Employee
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,
- Anonymous9 years agoNot applicable
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.