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'm trying to create a dynamic filter for my model, using the "[UserName] = USERNAME()" filter on my model, based on this tutorial video.
My problem is that it looks like it doesn't work (the user can see all data).
(Different colors mean different users.)
I checked the user is not an admin (neither on the server nor database). I guess I'm missing something, any idea what could it be?
@Arklur,
What mode do you use to connect to SSAS database in Power BI Desktop, import or connect live? Dynamics Row Level Security(RLS) only works in Connect Live mode. For more details, please review the following official article.
https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-row-level-security-onprem-ssas-tabular
Regards,
Lydia
I'm using Connect Live.
@Arklur,
I am unable to reproduce this issue. Instead of using username() function, do you get same issue when defining DAX filter in fact table to restrict permission?
Regards,
Lydia
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |