The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a CountryVirtual table like below:
Role | VID |
US | 1 |
UK | 2 |
GR | 3 |
Fact table VIRTUALS
VID | VNAME |
1 | a |
1 | b |
2 | a |
3 | d |
3 | e |
Note that I do not have VID mapping to useremail anywhere.
Now, for me to implement RLS where I create 3 roles like US, UK, GR with hardcoded filter on CountryVirtual table.
The filters are VID = "1" for US, VID = "2" for UK and so on.
It all works fine.
But question is on how I can avoid this hardcoded filters?
Can I write a DAX formula to the right of VID = expression? If so, what can it be?
Solved! Go to Solution.
@Anonymous , If you do not have email mapping, you have to create roles by value and assign them to users. So my advice would be to create one
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
@Anonymous , If you do not have email mapping, you have to create roles by value and assign them to users. So my advice would be to create one
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |