Postgres Database in Powerquery on Mac -> MoreQuery

Driekes

New Member
Joined
Dec 13, 2023
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
I thought to quickly connect a postgres database with Excel on Mac. Mac is a limitation from our company, so I can't use Windows.
I had thought there were quite some easy and advanced visual query building stuff going on on in Power Query/Excel, but it has proved to be the ride.

So finally:
1. Set up the driver
2. Set up the ODBC connection
3. Set up a query with parameters to get relevant data in excel
4. Feed this back into Power Query

I found the nice and handy MoreQuery component, this allows you to reference a table, so I can refresh ODBC and the second table is also refreshed nicely without the requirement to save the file and refresh the second table again.

In order to optimize further I realized MoreQuery also allows you to remove the table that ODBC connection created, and reference 'Existing connection'. However, this throws an error. Am I looking one step too far in optimizing this? :) It just feels faster if Excel doesn't have to load 250.000+ rows for input into PowerQuery.

So, to resume, is it possible to allow to have PowerQuery linked to an ODBC source on Mac using the Morequery tool.

Reference: MoreQuery for Mac

Error 1004 during runtime: 'Method OLEDBConnection of object WorkbookConnection has failed (translated from Dutch)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top