Forum Discussion

AlexeyRusinov's avatar
AlexeyRusinov
Helper II
9 years ago
Solved

Change type of data source

Hello everyone,

Our company is thinking of moving from CRM on-premise to CRM online, which means for Power BI completely changing of it's architecture.
Is there a way to keep the report design and visuals, and change data source from on-premise SSAS database to CRM online connector?
I saw this topic, but it's about changing data source within the same type, not my situation. Is there any way to keep the report and change data source to different type?

Please help,
Alex

  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi AlexeyRusinov,

    As you are using “Connect Live” option to connect to SSAS database, there’s no method to get codes in Advanced Editor or change source to CRM online.

    In your scenario, you would need  to connect to CRM online data source in new Power BI Desktop file and re-create the entire report.


    Thanks,
    Lydia Zhang

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Is the table structure going to be the same?  If so, go into the "Edit Queries" area and find each of your tables.  Clicking on each table you can edit the Power Query code by selecting "Advanced Editor".

    The first row of code after "Let" should be something like "Source = .....".  If you update this to point to the new data source then what should happen is your tables will just update and your reports should be happy.  If the field names change, you could modify them here inside the Query Editor before applying.

    Ok so if you aren't much for Power Query you might be thinking "How would i know what to write after 'source ='???".  Well what i'd do is click on "New Source" instead, link your new CRM location like it was a new table.  Power BI will write the Power Query for you!  Then you can simply take the line(s) of code you need and paste them over the top.  Of course just remember to delete any new sources you created.

    • AlexeyRusinov's avatar
      AlexeyRusinov
      Helper II

      > Is the table structure going to be the same?  If so, go into the "Edit Queries" area and find each of your tables.  Clicking on each table you can edit the Power Query code by selecting "Advanced Editor".

      I will make table structure same, yes. But my source PBIX, which I want to modify, is using live connection to on-premise source. So in Edit Queries section I can only change the data source:

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi AlexeyRusinov,

        As you are using “Connect Live” option to connect to SSAS database, there’s no method to get codes in Advanced Editor or change source to CRM online.

        In your scenario, you would need  to connect to CRM online data source in new Power BI Desktop file and re-create the entire report.


        Thanks,
        Lydia Zhang

    • Anonymous's avatar
      Anonymous
      Not applicable

      Finally I found the appropriate answer.