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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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.

Seth_C_Bauer
Community Champion
Community Champion

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...


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.