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.
Solved! Go to Solution.
Hi @Anonymous ,
Two ways.
1 add one more row to user table.
Then RLS filter DAX:
User:
[UserEmail] = username() || [UserEmail] = "all"
TARIFF:
[ConsignorID] = "00000"
||
[ConsignorID] in values('User'[ConsignorID])
Result:
2 Detele the relationship between these two tables and RLS Filter DAX:
User:
[UserEmail] = username()
TARIFF:
[ConsignorID] = "00000"
||
[ConsignorID] in calculatetable(values('User'[ConsignorID]),filter('User',[UserEmail] = username()))
Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Two ways.
1 add one more row to user table.
Then RLS filter DAX:
User:
[UserEmail] = username() || [UserEmail] = "all"
TARIFF:
[ConsignorID] = "00000"
||
[ConsignorID] in values('User'[ConsignorID])
Result:
2 Detele the relationship between these two tables and RLS Filter DAX:
User:
[UserEmail] = username()
TARIFF:
[ConsignorID] = "00000"
||
[ConsignorID] in calculatetable(values('User'[ConsignorID]),filter('User',[UserEmail] = username()))
Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thanks a lot! it works!!! what a relief!
@Anonymous
In your second DAX instead of writing false you can give a text , may be 1 or 0 and filter it out via FILTER
Regards,
Ritesh
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 |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |