Forum Discussion

Joshua_'s avatar
Joshua_
Icon for Helper II rankHelper II
2 years ago
Solved

Power BI gateway issue with live SSAS Tabular connection

Hi guys, Created a tabular model in SSAS and I can connect without problems from my power bi desktop. Once published in power bi service, I have created my Analsys Services type gateway, but when I...
  • Martin_D's avatar
    2 years ago

    Hi Joshua_ ,


    Your description matches with wrong or missing Power BI UPN (the one that you use to publish the report) to local AD UPN (the one that you use to access SSAS, e.g. from Power BI Desktop or Excel desktop app) being a potential cause. When you open the report in your web-browser, then Power BI Service sends your Power BI login name to the gateway and the getway to SSAS. In many setups, a local Active Directory manages usernames for login to your computer and services like SSAS on prem that differ from the Power BI login. If this is the case, then you either need to maintain manually in Power BI the username mapping (in the settings of the gateway SSAS data source in the web-browser, see https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-enterprise-manage-ssas#manual-user-remapping-in-power-bi ) or you need to configure the gateway to read the mapping from the Active Directory. This article explains the steps: https://blog.jpries.com/2019/10/14/power-bi-gateway-when-your-powerbi-com-login-doesnt-match-your-active-diectory-user-principal-name-upn/

    If you are using impersonation for SSAS access, and the above doesn't completely solve your problem, you might also need to allow the user running the Power BI Gateway Service to impersonate users at the SSAS (The gateway connects to SSAS with the identity running the gateway service, then the gateway service tells SSAS to use the identity from Power BI. This work only if SSAS accepts such requests from the user running the gateway service.)

     

    Another user solved the issue by setting up a SQL users for access from Power BI: https://blog.jpries.com/2019/10/14/power-bi-gateway-when-your-powerbi-com-login-doesnt-match-your-active-diectory-user-principal-name-upn/

     

    Another user suggested to upgrade to SQL Server 2017 and add the Power BI login as an external user (not sure whether this is a verified solution): https://community.fabric.microsoft.com/t5/Service/Connection-to-SSAS-through-Gateway-using-local-user-account-Is/m-p/369223

     

    So, first step I would suggest, you check with your SSAS developer or administrator what is the actual user that SSAS is seeing when you connect from Power BI Desktop successfully, then map your Power BI user to this user in the gateway settings in the web-browser. If this doen't solve the issue yet, make sure the user running the gateway service is allowed to impersonate users at your SSAS.

     

    BR

    Martin

  • v-weiyan1-msft's avatar
    2 years ago

    Hi Joshua_ ,

     

    It has been 2 weeks since your problem occurred, has it been resolved so far? Are you troubleshooting the problem based on the solution ideas provided by Martin_D ? If the issue is not resolved at this time, can you provide more information for our reference? This will better help you deal with the issue.
    Looking forward to your reply.


    Best Regards,
    Yulia Yan

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.