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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
tvathis
Frequent Visitor

Refresh with less rows pulled

Hi!

Is there a way to cut down the number of rows that are refreshing from my table? 

I originally added this from the SQL server as an import. 

I only need the last 2 years of data, but it is pulling everything (over a million rows). 

Just wondering if there's a way that I can cut down the time it takes to refresh? 

 

Thank you in advance for any suggestions. 

Thank you! 

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

Hi  @tvathis ,If I understand correctly, the issue is that you want to refresh with less rows. To solve the issue, you can follow these steps:

1.Import the data from SQL Server.

vjiewumsft_0-1701922550460.png

2.Go to the Home tab and click on Transform Data to open the Power Query Editor.

 

3.Locate the query that is pulling data from the SQL Server table.

 

4.Select the column that contains the date information.

vjiewumsft_1-1701922578809.png

5.Apply a data filter to only include the rows where the date.

vjiewumsft_2-1701922595845.png

6.Click Close and Apply to apply the changes and return to the Power BI.

 

7.Go the Home tab and click on Refresh.

vjiewumsft_3-1701922628856.png

 

Alternatively,  you can modify your SQL query to to include a WHERE clause that filters the data based on the date column. This way, you’re only importing the data within the last two years.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

 

 

 

 

 

View solution in original post

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi  @tvathis ,If I understand correctly, the issue is that you want to refresh with less rows. To solve the issue, you can follow these steps:

1.Import the data from SQL Server.

vjiewumsft_0-1701922550460.png

2.Go to the Home tab and click on Transform Data to open the Power Query Editor.

 

3.Locate the query that is pulling data from the SQL Server table.

 

4.Select the column that contains the date information.

vjiewumsft_1-1701922578809.png

5.Apply a data filter to only include the rows where the date.

vjiewumsft_2-1701922595845.png

6.Click Close and Apply to apply the changes and return to the Power BI.

 

7.Go the Home tab and click on Refresh.

vjiewumsft_3-1701922628856.png

 

Alternatively,  you can modify your SQL query to to include a WHERE clause that filters the data based on the date column. This way, you’re only importing the data within the last two years.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

 

 

 

 

 

Ritaf1983
Super User
Super User

Hi @tvathis 
You can use incremental refresh.

Please refer to :

https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-configure

https://www.youtube.com/watch?v=Kui_1G6kQIQ

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.