Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 |
|---|---|
| 57 | |
| 43 | |
| 32 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |