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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
iguevara
New Member

Getting data from a PostgreSQL (issues)

Hi,

 

    I'm getting data from a couple tables of a PostgreSQL DB but it is retreiving only a small part of the records. Everytime I refresh tha data, PowerBI Desktop shows different results but always incomplete information... maybe there is a part that I'm not doing well.

 

Loading query:

Select wrhs_id, created, local_code, subtotal, tax_amt, grand_total
 From orders where date_part('year',created) >= 2013

 

Any ideas?

 

Regards

Ignacio Guevara

2 REPLIES 2
curth
Power BI Team
Power BI Team

Is this inside the editor or after you fill into the data model? If inside the editor, the editor always shows only the first n rows of the result, so if the query defines a result set whose size is greater than n and the server returns them in a different order each time, you'd get what you're describing.

Anonymous
Not applicable

Ignacio,

This is just an idea, but there have been some issues with date recognition from other data sources. Can you make the year transform in your source? So your query would change to look only for orders where [year] >= 2013 instead of doing the date_part()? See if that works...

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.