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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors