Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I hope you're all doing well. My company recently migrated the backend data of an existing Power BI dashboard from on-premise SQL storage to Microsoft Dataverse. During this migration, some table names and column names were changed.
I need to reconnect the existing Power BI dashboard to the new Dataverse tables while ensuring that all visuals, measures, queries, and relationships remain intact without errors.
What is the best approach to update the data source and align the schema without breaking the current report? Any guidance or best practices would be greatly appreciated!
Thank you in advance for your help.
Best Regards,
Musthakeem
Solved! Go to Solution.
Hello,
The first thing is to make a mapping of your table name and field
For example:
SQL Table: Customers -> Dataverse Table: Accounts
SQL Column: CustomerID -> Dataverse Column: accountid
....
Connect to dataverse as a datasouce and, then create a copy of the first query you want to update and modify the connector with advance editor (modify the source and not the copied, the copied source is just a back up)
It should like
Source = Sql.Databases("YourSQLServer", "YourDatabase"),
YourTable = Source{[Name="YourTable"]}[Data],
#"Renamed Columns" = Table.RenameColumns(YourTable,{{"CustomerID", "OldCustomerID"}})
Source = CommonDataService.Database("YourDataverseEnvironment.crm.dynamics.com"),
YourTable = Source{[Name="accounts"]}[Data],
#"Renamed Columns" = Table.RenameColumns(YourTable,{{"accountid", "OldCustomerID"}})
Once everything is imported use the "Rename Columns" transformation to align the new Dataverse column names with the old SQL column names. This is crucial for maintaining relationships and measures.
Once that is done, you can close and apply, if you have error message, reopen power queyr and continue to fix
Do not hesitate to ask if you need more details for a specific point, it is a general approach
Hi @Anonymous
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Anonymous
I wanted to check if you had the opportunity to review the information provided. by @Cookistador Please feel free to contact us if you have any further questions. If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi Shamil,
Sorry for the delayed reply. The description above outlines the task I was assigned. However, due to a technical issue, I haven't been able to access the new data source and the report to verify whether the proposed solution works.
I was researching possible solutions to the issue, but since I couldn't find any online, I posted my question here. I'll let you know if the solution works as soon as I gain access.
Once again sorry for the late reply
Hi @Anonymous
Thanks for getting back and sharing the update!
Technical access issues can definitely slow things down. I appreciate you taking the time to explain.
Once you’re able to access the new data source and test things out, feel free to drop an update here. I’ll be happy to revisit and help further if needed.
Hi @Anonymous
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hello,
The first thing is to make a mapping of your table name and field
For example:
SQL Table: Customers -> Dataverse Table: Accounts
SQL Column: CustomerID -> Dataverse Column: accountid
....
Connect to dataverse as a datasouce and, then create a copy of the first query you want to update and modify the connector with advance editor (modify the source and not the copied, the copied source is just a back up)
It should like
Source = Sql.Databases("YourSQLServer", "YourDatabase"),
YourTable = Source{[Name="YourTable"]}[Data],
#"Renamed Columns" = Table.RenameColumns(YourTable,{{"CustomerID", "OldCustomerID"}})
Source = CommonDataService.Database("YourDataverseEnvironment.crm.dynamics.com"),
YourTable = Source{[Name="accounts"]}[Data],
#"Renamed Columns" = Table.RenameColumns(YourTable,{{"accountid", "OldCustomerID"}})
Once everything is imported use the "Rename Columns" transformation to align the new Dataverse column names with the old SQL column names. This is crucial for maintaining relationships and measures.
Once that is done, you can close and apply, if you have error message, reopen power queyr and continue to fix
Do not hesitate to ask if you need more details for a specific point, it is a general approach
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
15 | |
14 | |
8 | |
6 | |
6 |