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 was wondering of anyone has figured out within M how to determin if the code is running on the Desktop or Service.
Basically I want to branch the code and do A if running on desktop and B if in the cloud.
Any ideas?
Cheers
Andrew
Hi @Anonymous ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.
Best Regards,
Stephen Tao
Hi @Anonymous ,
I am afraid that this function is not currently available.
I think you might want to restrict data access, it is suggested to try to use row-level-security.
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-rls
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.