Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Memorable Member
Memorable Member

Hi @Anonymous ,
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/ba-p/960701 
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
Memorable Member
Memorable Member

Hi @Anonymous ,
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/ba-p/960701 
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

Anonymous
Not applicable

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.