The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Guys,
I have the follow Table filter DAX expression to meet some RLS requirement.
I would like to one more filter that return me any employee from Authorizationmanagers table that has "FA" as value from column Responsibility. In the following DAX code the PBIX doesnt accept this way of formula.
Any suggestions how i can add the responsiblity = "FA"?
Many thanks
VAR authorisationPersonel=
SUMX (
FILTER ( 'Authorization managers', 'Authorization managers'[e-mailadres] = USERPRINCIPALNAME () ),
'Authorization managers'[responsibility] = "FA"),
IF (
PATHCONTAINS ( 'Authorization Occupation'[Org pad], 'Authorization managers'[Organization] ),
1,
0
)
)
RETURN
IF ( authorisationPersonel> 0, TRUE (), FALSE () )
Solved! Go to Solution.
@rsanyoto
Are you sure the your original measure can run properly? Try this:
@rsanyoto
Are you sure the your original measure can run properly? Try this:
@rsanyoto Give this a try
VAR authorisationPersonel =
SUMX (
FILTER (
'Authorization managers',
'Authorization managers'[e-mailadres] = USERPRINCIPALNAME ()
&& 'Authorization managers'[responsibility] = "FA"
),
IF (
PATHCONTAINS (
'Authorization Occupation'[Org pad],
'Authorization managers'[Organization]
),
1,
0
)
)
RETURN
IF ( authorisationPersonel > 0, TRUE (), FALSE () )
Hi @jdbuchanan71 ,
Thanks for your response but unfortunatly i received a syntax error... which : The syntax for ',' is incorrect.
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
51 | |
51 | |
46 |