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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors