cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gopikrishnaj
Helper II
Helper II

How to convert from DB2 data source to ODBC data source of an existing report in PBI desktop

Hi ,

 

Can you please suggest me how to convert/change the data source connection from DB2 to ODBC of an existing report in PBI desktop.

 

Thanks in advance !

 

1 ACCEPTED SOLUTION
nandic
Super User
Super User

Hi @gopikrishnaj ,
Here is explanation how to connect via odbc: https://community.powerbi.com/t5/Community-Blog/How-to-Connect-to-an-ODBC-Data-Source-From-Power-BI/... 
If data is the same as it was in DB2, you can copy generated M query and paste it into the advanced query of original query. It number of columns and column names are the same, it will work smoothly. Otherwise, you will need to make aliases or existing calculations will fail.

Below is Advanced editor option in Power Query.

advanced editor.PNG

 

Regards,
Nemanja Andic

View solution in original post

2 REPLIES 2
nandic
Super User
Super User

Hi @gopikrishnaj ,
Here is explanation how to connect via odbc: https://community.powerbi.com/t5/Community-Blog/How-to-Connect-to-an-ODBC-Data-Source-From-Power-BI/... 
If data is the same as it was in DB2, you can copy generated M query and paste it into the advanced query of original query. It number of columns and column names are the same, it will work smoothly. Otherwise, you will need to make aliases or existing calculations will fail.

Below is Advanced editor option in Power Query.

advanced editor.PNG

 

Regards,
Nemanja Andic

View solution in original post

Thanks so much Nandic for your prompt response . Will try as you suggested and let you know if we see any issues.

 

Thanks again !

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!