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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
amitchandak
Super User
Super User

Postgresql Direct Query Fails on joined tables

I connected to Postgresql using direct Query. But when I try to get data it errors out. Using the latest version of NPGSQL 4.0.9

I have taken two tables in Direct query mode.

Joined them on Key column.

And then try to run a query where view by/group by is from the first table and agg column from the second tables.

Screenshot 2019-08-24 11.05.50.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @amitchandak ,

I'm a little confused about your scenario.

How do you connect with your data?

Use the built-in connector Postgresql Database or the Power Query?

In addition, you could refer to this thread which may be helpful.

Best Regards,

Cherry

 

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

In the Model view, I have joined Table1 to table2. Table 1 is Carrier_invoice having id and Table2 Shipment_invoice_details having Invoice_header_id. Power Bi was able to find 1-Many realtion. These tables are big, so I can not move data inside Power BI and Power BI now supporting the Direct query on PostgreSQL, so trying that. In the past, I was able to use the same data in Power BI using load data option. 

I have a requirement for some live reports. 

 

Screenshot 2019-08-24 11.06.34.png

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.