如何将 Power BI 连接到 PostgreSQL

let*_*ght 2 postgresql npgsql powerbi

我想从 PostgreSQL(在我的本地机器上)获取数据到 Power BI 桌面。我尝试了此处给出的解决方案(在 PowerBI 中安装 ngpsql 以使用 PostgreSQL),但没有奏效。

基本上,我安装了最新版本的 ngpsql(3.2.4),并带有安装到 GAC 的选项。但是,我在 Power BI 中遇到了同样的错误,说连接器需要一个或多个附加组件。

我错过了任何步骤吗?我在网上查看,但没有找到任何关于此的最新文档。

很感谢任何形式的帮助。

谢谢

Rig*_*ini 5

三种方式:

1 -该ngpsql方式做工作,如果你后续的评论Lavande

  1. 以管理员身份安装 npgsql(因为 DLL 将被推送到 GAC);
  2. 在安装阶段,启用“Npgsql GAC安装”;
  3. 重启电脑

2 - With ODBC, i used this walk-through

  • install ODBC connector here
  • start it and create a new connection (DSN)
  • in Power BI, get data, ODBC,PostGreSQL, no options
  • enter the credentials.
  • select the table(s) of interest.

3 - With the M query language.

Nota : the Power BI community posts ? well, ...