The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi
I have all invoice data gathered in a single report in Power BI Desktop. Filtering per salesperson it is possible to see sales for every salesperson.
I would like to automatically send an email every month to all the salespersons, where only their own data is visible. It could both be as a PDF or as a Power BI link to the report. The most important thing is just that they can only see their own data and not others.
Is this possible?
Solved! Go to Solution.
Testing the role in Power BI desktop requires you to check BOTH the role and "Other user" and you need to specify the email address you want to test. Testing in the service only needs the role.
yes. You can export to file and specify a report level filter that in your case would have to drive the RLS column (user email) that you have implemented.
Note: Export to File has API call quantity limitations.
@lbendlin thank you. I tried to use dynamik RLF
But when I set a filter on the emails in "manage roles" and then try to set the security in both directions, I'm getting an error saying that I can't. Do you know why?
But
Setting a filter to bidirectional defeats the purpose of RLS. Even if you can do it you never ever should. The RLS table needs to sit on the outer rim of your Star schema and point single direction all the way to the fact table.
@lbendlin I also tried that, but it does not filter anything when I test the role in Power BI Desktop.
Right now all facts point to invoices and the lines of the invoices. I would think that the relation between invoices and the lines should be filtered in both directions, but it does not change anything in my tables.
Is the filtering incorrect?
Testing the role in Power BI desktop requires you to check BOTH the role and "Other user" and you need to specify the email address you want to test. Testing in the service only needs the role.
🙈 Of course, well now I see that everything works fine 😊 I had only checked the "Other user" with the specified email address. Thank you very much 🙏
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.