Forum Discussion

AngryKoala's avatar
AngryKoala
Frequent Visitor
11 years ago
Solved

Changing Connection in SSAS Live mode

In Power BI Desktop (or in the portal for that matter) how do I change to connect to different SSAS Tabular Database ?

 

eg Just want to change the connectin string...

  • meysun's avatar
    meysun
    10 years ago

    With the latest update of Power BI Desktop, you can change both the server name and the database/cube name from the "Edit Queries" button when you connect to AS in explore live mode.

13 Replies

  • kdejonge's avatar
    kdejonge
    Microsoft Employee

    Click on Edit Query, here you can change the connection for the AS server.

    • AngryKoala's avatar
      AngryKoala
      Frequent Visitor

      Thanks Kasper, but actually is *same* server just different SSAS Tabular database.
      (in fact is same database, it was just renamed)

       

      BTW: My client rebuilt all her dashboards, published and had everything running in the portal in one morning 

       

      KUDOS TO THE TEAM

  • konstantinos's avatar
    konstantinos
    Memorable Member
    Change the database in Navigation (2 step when in Edit Query) after connection
    • AngryKoala's avatar
      AngryKoala
      Frequent Visitor

      Appreciate you taking time to answer, *but* there is no second step - it fails on the first.... see screenshot above

       

      Easy to reproduce

      1. Connect to SSAS Server

      2. Select database

      3. Select model (cube)

      4. Back on server, rename database

      5. Back in Power BI Desktop now have error

      6. Click on Edit - can't get past dialog (see above)

      • konstantinos's avatar
        konstantinos
        Memorable Member

        There is no screenshot, but you are right, my mistake.  When you edit the query ( as live ssas connection ) you cannot see M in order to change the query neither shows up in data sources. Maybe the team can change and give as the UI to enter advanced editor. 

  • ashishrj's avatar
    ashishrj
    Power Participant

    AngryKoala konstantinos meysun kdejonge Thib You can try the following step to delete any existing connection (instead of using edit queries) and to connect to same server but different database or same database

     

    solution.png

     

    Let me know if this works! Thanks

    • AngryKoala's avatar
      AngryKoala
      Frequent Visitor

      NO

       

      Followed instructions and deleted datasource

      1. Deleted connection "localhost\tabular"
      2. Closed PBID file
      3. Opened PBID file
      4. just have "spinny" (obviously as connection gone)
      5. clicked Edit Queries
      6. entered "localhost\tabular"
      7. clicked OK
      8. get same error in "!" error and when click get following in yellow box
        "Either the user, galah\Grant, does not have access to the zzHyProfit database, or the database does not exist."

      Any other suggestions?

       

      • meysun's avatar
        meysun
        Resolver IV

        With the latest update of Power BI Desktop, you can change both the server name and the database/cube name from the "Edit Queries" button when you connect to AS in explore live mode.

  • Anonymous's avatar
    Anonymous
    Not applicable

    To Resolve this follow below step.

    1. Go to Home.

    2. Click on "Transform Data" in "Queries" Section.

    3. There you get option " Data Source Settings".

    4. clik to open and yu can change the server name.