Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |