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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
WLFRD
Helper III
Helper III

Limit import data from SQL based on date

Hello,

 

Last week, I have uploaded a report to the Power BI Workspace and the scheduled refresh is giving me some problems due to the large amount of data. 

I would like to modify this report by not importing all the SQL data (goes back to 2010) but just import  a rolling 18 months of data. 

 

I'm not sure how to do that in Power Query. Can someone help me out on this?

 

Thanks.

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @WLFRD ,

 

According to your statement, I know that your data source is SQL Server and you only need to load data in a rolling date range. Here I suggest you to try incremental refresh in Power BI. You need to configure it in Power BI Desktop. When your publish it and refresh in Power BI Service, the query filters return only those rows within the refresh period dynamically defined by the parameters. Those rows with a date/time within the refresh period are refreshed. Rows with a date/time no longer within the refresh period then become part of the historical period, which isn't refreshed. 

For reference: 

Configure incremental refresh and real-time data for Power BI datasets - Power BI | Microsoft Learn

Query folding guidance in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @WLFRD ,

 

According to your statement, I know that your data source is SQL Server and you only need to load data in a rolling date range. Here I suggest you to try incremental refresh in Power BI. You need to configure it in Power BI Desktop. When your publish it and refresh in Power BI Service, the query filters return only those rows within the refresh period dynamically defined by the parameters. Those rows with a date/time within the refresh period are refreshed. Rows with a date/time no longer within the refresh period then become part of the historical period, which isn't refreshed. 

For reference: 

Configure incremental refresh and real-time data for Power BI datasets - Power BI | Microsoft Learn

Query folding guidance in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.