Forum Discussion
change datasoruce
- 8 years ago
Hi daniels13ca,
Seems no direct way available. But we can change the Power Query (M) code directly. One precondition is that the structure should be the same. If they have the same data type, that would be great.
1. Usually, the first two rows codes are the data source.
2. If you have many queries, you have change them one by one.
3. Please pay attention to the two parts tagged by blue 1 and 2.
4. Backup the code first, if you do anything wrong, you can paste the code back and do it again.
If you have any problem doing it, please post the code here. Please mask the private parts first.
Best Regards,
Dale
the most challenging part is keeping the same Data format while migration.
1. I would take screenshots of all the data format structures of all tables including the relationships.
2. I will copy the pbix file then start testing it.
3. I will also make sure that all the column names in pbix are noted in some notepad/word.
My question is that in the options to change de datasource SQL Server is not available
- rocky098 years agoSolution Sage
- daniels13ca8 years agoRegular Visitor
Yes, and the options are the same :mansad:
- v-jiascu-msft8 years agoMicrosoft Employee
Hi daniels13ca,
Seems no direct way available. But we can change the Power Query (M) code directly. One precondition is that the structure should be the same. If they have the same data type, that would be great.
1. Usually, the first two rows codes are the data source.
2. If you have many queries, you have change them one by one.
3. Please pay attention to the two parts tagged by blue 1 and 2.
4. Backup the code first, if you do anything wrong, you can paste the code back and do it again.
If you have any problem doing it, please post the code here. Please mask the private parts first.
Best Regards,
Dale