Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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 |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |