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.
Good Day Professionals,
I'm relatively new to Power BI, so please excuse my basic (if that) question.
Looking for advice on how to achieve/implement dual RLS mode.
In my simple example, let's say there're 3 Customers, and every Customer has a dedicated (current) Sales Rep. Those customers made a sale. However, when transaction was made, it was associated with other Sales Reps.
I've created a simple star schema model and need to create 2 reports: first to dispalay sales informattion based on the current Rep associated with the Customer, other report should display sales based on the Rep who made a transaction.
Esentially, Rep 2 from Customer should see $200, while Rep 2 on Transaction should see $500.
Thank you in advance for your time on think about this.
Sam
Solved! Go to Solution.
Hi @ustas55 ,
Please refer to my .PBIX file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ustas55 ,
Like this?
Please refer to my .pbix file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Lionel,
Thank you.
Sort-of like that. However, when running under Rep-3, I'm getting Sales for Rep-2.
My dilemma, I guess, is that security has to be “dual” and independent mode. First, (Master data report) has to filter Reps on the Customer table (like in your sample model). Second (transactional), has to be on the Rep table.
Best Regards,
Sam
Hi @ustas55 ,
Has your problem been solved?
Are your three tables like this?
Customer table
Rep table
Sale table
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Lionel,
Unfortunately no, still pursuing opportunities on how to make it work.
My tables are as follow:
Just want to reiterate what I’m trying to achieve…. This RLS should accommodate reps who are currently assigned to a customer and reps that made transaction; “master data” vs “transactional”.
Rep-1 has 1 customer and 1 transaction. $100 should be returened using both RSL methods.
Rep-2 has 1 customer and 2 transactions. So if Rep-2 needs to see “master data”, he should see only $200. If he wants to see transactional, he would see $500.
Rep-3 has 1 customer and no transactions. So he should only see $300 associated with customer “C”. Since Rep-3 didn’t have any transactions, his “transactional” report should not display any numbers.
Thank you for looking into it.
Best Regards,
Sam
Hi @ustas55 ,
Please refer to my .PBIX file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Lionel,
I think it will work. At least I've got a concept.
Best Regards,
Sam
@ustas55 ,
refer if these can help
https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies
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 |
---|---|
113 | |
99 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |