Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hei,
I am having a bit of an issue figuring out how to implement RLS. So, I have a typical star schema, with a sales fact table and more dimension tables (item, customer, vendor, seller, buyer, etc). In all the tables I have an AccountID column that identifies the company that the row of data belongs to -> since in the same tables we record the transactions for more companies (our customers).
So, first I figured this is easy, since I have the accountID everywhere, so I just created a role for one of the companies and put a filter on all the tables - e.g. Sales[accountid] = "4433-5643" (aka the accountid number), Item[accountid] = "4433-5643", etc. But since in the sales table not all of the transactions have for example a buyerNo, then I ended up with some sales transactions not showing up anymore. So that is a big issue.
So, any advice on how to implement this? I can filter only the sales transactions, but I want to make sure that for example a customer list filter will only show that companies customers.
I have been looking a bit into bi-directional cross-filter, but should I then add RLS DAX on Sales, and then make all the relationships bi-directional? That doesn't really seem like a good practice?
' You can manually enable bi-directional cross-filter with row-level security by selecting the relationship and checking the Apply security filter in both directions checkbox.'
Thank you,
Luiza
@Anonymous,
Your requirement is not very clear. Check if the following post helps.
https://community.powerbi.com/t5/Desktop/power-bi-rls-implementation/m-p/358535#M161644
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
39 |