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.
Using USERPRINCIPALNAME() to give users a personal view of a report. Works great.
Reorganised the report so that the source is now an online PBI dataset and now when in PBI desktop the function returns the long alphanumeric string id instead of user@xxx.com. Still works fine in the Service but its annoying for development as I cannot test the report properley without publishing.
Anyone else come across this? Any workaround?
Solved! Go to Solution.
@Anonymous
You can typically override the result returned by USERPRINCIPALNAME() in Power BI Desktop by selecting "Test As" from the Security section of Modelling tab - and entering any target email.
Since you are connecting to a shared dataset - these options are disabled. Given this limitation - the only workaround may be reguarly publish the report to a test/dev PBI service environment online. I don't believe you can override USERPRINCIPALNAME() in PBI desktop when connecting to a shared dataset.
Hi @Anonymous,
Perhaps you can add RLS role to your data model to enable the UPN instead guid id string of user names.
For detailed descriptions, you can take a look at the following blog that told about similar issues(if it helps for your scenario) :
Using Username() in DAX with Row-Level Security
Regards,
Xiaoxin Sheng
Hi @Anonymous,
Perhaps you can add RLS role to your data model to enable the UPN instead guid id string of user names.
For detailed descriptions, you can take a look at the following blog that told about similar issues(if it helps for your scenario) :
Using Username() in DAX with Row-Level Security
Regards,
Xiaoxin Sheng
@Anonymous
You can typically override the result returned by USERPRINCIPALNAME() in Power BI Desktop by selecting "Test As" from the Security section of Modelling tab - and entering any target email.
Since you are connecting to a shared dataset - these options are disabled. Given this limitation - the only workaround may be reguarly publish the report to a test/dev PBI service environment online. I don't believe you can override USERPRINCIPALNAME() in PBI desktop when connecting to a shared dataset.
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |