Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm struggling with finding the correct solution to a problem that I have.
I have a user table with email addresses.
| company id | department id | division id | special case | |
| a@b.com | A | 0 | 0 | 0 |
| b@c.com | B | 40 | 0 | 1 |
| c@c.com | B | 0 | 0 | 0 |
Now I also have a fact table like so
| fact id | company id | department id | division id | special case |
| 234567 | A | 99 | 0 | 0 |
| 234568 | A | 99 | 0 | 1 |
| 234569 | B | 40 | 0 | 0 |
| 234570 | B | 0 | 0 | 0 |
The steps I need to consider are these
How do I Combine this logic into a DAX code for the roles?
I tried implementing similar approach to what Reza Rad does at Radacad: https://radacad.com/dynamic-row-level-security-with-profiles-and-users-in-power-bi
I also tried to combine the company id with the special case value, e.g. A-0 (company A and no special cases) or B-1 (company B with special cases) and use that as a Row ID to filter the rows in the fact table. However I don't know how to insert the other logic in 3 & 4.
but with no real luck.
Hi, @Yggdrasill
You can check whether the solution in this thread works for you.
Best Regards,
Community Support Team _ Eason
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |