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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jaryszek
Post Prodigy
Post Prodigy

How to connect to .duckdb database?

Hi Guys,

I installed duck db odbc driver and trying to connect it with power bi. 

 

This is my set up ODBC:

Data Source Name: Luke db

Database: cost-mgmt-analytics\duckdb\cost_mgmt_analytics.duckdb --> here is a path where duckdb database is located

 

and now i went to power bi desktop, use get odbc data. Choose the username as odbc name (i do not have any username there). 

And in power query i have:

jaryszek_0-1734968934705.png

 

What I am doing wrongly ?
Please help
Best,
Jacek

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from elitesmitpatel, please allow me to provide another insight.
Hi @jaryszek ,

You can use this custom connector to connect to the duckdb database (.db file)

MotherDuck-Open-Source/duckdb-power-query-connector: DuckDB Power Query Custom Connector by MotherDu...

In my testing, this custom connector worked well to create reports using data from the duckdb database.

vdengllimsft_0-1735118090246.pngvdengllimsft_1-1735118133047.pngvdengllimsft_2-1735118175750.png


Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the reply from elitesmitpatel, please allow me to provide another insight.
Hi @jaryszek ,

You can use this custom connector to connect to the duckdb database (.db file)

MotherDuck-Open-Source/duckdb-power-query-connector: DuckDB Power Query Custom Connector by MotherDu...

In my testing, this custom connector worked well to create reports using data from the duckdb database.

vdengllimsft_0-1735118090246.pngvdengllimsft_1-1735118133047.pngvdengllimsft_2-1735118175750.png


Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

elitesmitpatel
Super User
Super User

1) Please Authenticate .duckdb database while connecting.

 

2) Check DSN Configuration:

If the connection fails, ensure that the file path to the DuckDB database in the ODBC settings is accurate.

 

3)Permissions:

Verify that Power BI has access to the location where the DuckDB file is stored.

 

4)Firewall/Drivers:

Ensure there are no firewall restrictions or driver issues affecting the connection.

If it helps Kudos to work and Accept it as Solution.

Thank you @elitesmitpatel 

1) How to do this? database is on my local disc

 

2) How to check this? In windows there is the option to configure it, not check it. 

 

3) If ineed to trust specific location like in Excel?

4) There is no firewall

 

Thank you once again for help,
Best,
Jacek

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.

Top Kudoed Authors