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
Ryszard
Frequent Visitor

Not enought memory

Hi there.

 

I am quite new PowerBi user without experience with DAX and SQL. My issue is linked with PowerBi command Not enought memory during SQL data importing to PowerBi.I executed some community suggestions for instance: remove unnessesary colums; i disable "Allow data preview to download in the background". That hepled partialy; it's mean before i could load 40 mln rows now i can load 103 mln rows before error occur. is it possible (and how to do it) to filter by date, for instance load data from sql to the PowerBi model only from 3 years before now?

4 REPLIES 4
Keith_H
Advocate I
Advocate I

This thread shows how to build the SQL into your query - writing it should be pretty straightforward, something like

 

SELECT * from [YourTable] where [DateYourInterestedIn] >= DATEADD(year, -3, CURRENT_TIMESTAMP);

 

depending on what your server is runing and how much data you want to pull

Thank you for prompt reply.

 

I tried your code but, there is a syntax error. Anyway i use column filter properties(date/time filters), but it seem that there is still to many records for PowerBi/available memory to load (i loaded data from 2017-12-29 and when i try 2017-12-01 memory limitation message appear) 

Hi @Ryszard,

When you use SQL statement to filter your data, please test using SSMS, then type the accurate SQL statement in the red line box.

2.PNG

Best Regards,
Angelia

comish4lif
Helper II
Helper II

This isn't a solution, but I have a related question.

 

When you use SQL to load rows, does PBI use the indexes in the database associated with those tables?

 

Are there best practices available to load large datasets in PBI?

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.