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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Has anyone done composite aggs against Postgres at any scale?

PBI Desktop (April 2020) composite model with dq to postgres. Any field or calculated measure added to a table or matrix visual gets the error "Direct query may not be used with this data source - please consider moving to a supported data source." 

 

There is one fact table (only 70M rows) set to direct query and a corresponding aggregate table set to import, both use Value.NativeQuery connection like here

 

Close and apply, add a dax date table, set aggregations, create some measures, everything works fine

 

Then, when I put any field or measure from the fact table onto the canvas, it gives the error above.  I was able once (not since) to put the month field from the date table into a table visual first, and then add a couple measures from the fact table and that worked. But as soon as I created and added a new measure, it threw the error. Its not slow and there's no spinning wheel of death, just pops up the error. Hit refresh on the home tab, that works fine. Performance monitor catches dax query, but no direct query and I'm pretty sure the aggs are good (simple group by and counts). this pbix is 100kb.

 

Is there some limitation I'm overlooking? This dataset works with Import but then its a nuisance 30GB pbix with a third of the records I need.

 

1 REPLY 1
Anonymous
Not applicable

@Anonymous 

 

Sorry, I cannot reproduce your issue. Did you had any advanced query transformation in your query editor? (e.g. merge, append, split, reference other query, invoke custom function). If so, power bi gateway datasources may not map correctly with these advanced operations query tables. 

 

For limitations:

Based on the document, there is a 1 GB limit, per dataset, that is imported into Power BI. If you have chosen to keep the Excel experience, instead of importing the data, you will be limited to 250 MB for the dataset.

Currently, Power BI Premium supports uploads of Power BI Desktop (.pbix) files that are up to 10 GB in size.

 

You can scroll down and CREATE SUPPORT TICKET to get a best solution from Power BI team.

 

Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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