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.
Hey guys!
I tried to make a dynamic RLS per access level, but I was unable to make the first level able to access all the information.
The context would be that level 1 users can access all information, level 2 will only access data from their region and level 3 will only be able to access the region and its respective sector.
When creating the dax code I made this example below:
Solved! Go to Solution.
@hugo_barbara - There are a few things here.
1) Check on which table your rule is applied - The way your DAX is written it should be applied to the 'fVendas' table.
2) If this is were your DAX rule is being used, then you should not use relationships, because the LOOKUP will find the relevant data from dUser and apply it to fVendas through a virtual relationship.
3) In particular the bi-directional nature of one of your relationships will be causing the RLS to fail.
4) The inactive relationship can remain, but it may cause you errors or failing RLS when the particular measure that 'activates' it is used.
If this helps, please accept it as the solution to help others with the same challenge.
Thank you very much!! When following the steps provided, I was able to see the error.
Thank you very much!
@hugo_barbara - There are a few things here.
1) Check on which table your rule is applied - The way your DAX is written it should be applied to the 'fVendas' table.
2) If this is were your DAX rule is being used, then you should not use relationships, because the LOOKUP will find the relevant data from dUser and apply it to fVendas through a virtual relationship.
3) In particular the bi-directional nature of one of your relationships will be causing the RLS to fail.
4) The inactive relationship can remain, but it may cause you errors or failing RLS when the particular measure that 'activates' it is used.
If this helps, please accept it as the solution to help others with the same challenge.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |