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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to connect Power BI with DB2 through DirectQuery

Hi,

 

I have an issue trying to connect a database IBM DB2 to my Power BI dashboard through IBM Driver. I checked on this forum all the topic related to this problem and I upgrade yet, the driver version to the last one.

 

The error is the following one:

 

Captura.PNG

 

I checked yet on the Power BI documentation that DB2 is a source allowed.

 

https://docs.microsoft.com/es-es/power-bi/connect-data/power-bi-data-sources

 

 

 

Thanks for the help.

 
2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

When connecting, which driver do you use? IBM or Microsoft?

Is the IBM DB2 on the same server with your power bi desktop?

This error indicates the server name and database name may not be correct and you may have limit acess to the server and database.

Generally, the server name is host name: port name.

please check if your account have acess to the data on IBM DB2 and check if your server open the port for it.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Hi Maggie,

 

First of all, thanks for the help and the reply.

 

I checked and I have the last version of the IBM driver since last Thursday.

 

Second point, when I'm trying to do the same queries on the DB2 but using the "import" option I don't have any kind of problem. Really strange issue.

 

Any other clue to solve this inconvenient ?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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