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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kzielinska
Frequent Visitor

Incremental Refresh

Hi!

 

I have an SQL query in which I'm extracting some dables and in this query I specified that I only want to extract last 300 days of data. Does it make sense to use RangeStart and RangeEnd parameters after that?

Thanks for your help 🙂

4 REPLIES 4
v-xinruzhu-msft
Community Support
Community Support

Hi @kzielinska 

If you just want to extrat the  last 300 days of data, you can just filter the data .

Insert a new step

vxinruzhumsft_0-1710919652191.png

Then input the following code.

= Table.SelectRows(#"Renamed Columns"(your last step name), each ([Date]>=Date.AddDays(Date.From(DateTime.LocalNow()),-300)) and ([Date]<Date.From(DateTime.LocalNow())))

Best Regards!

Yolo Zhu

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

 

yes, I understand that, but on top of that I want to incrementally refresh my data. Does it make sense if I refresh incrementally after a query like that?

kzielinska
Frequent Visitor

so does it make sense to use RangeStart and RangeEnd parameters after?

Additionally, RangeStart should be equal to the date before which I want to archive the data? or to the date after which I want to start incrementally refresh the data?

kzielinska
Frequent Visitor

My query is like this:

select * from table where date<getdate() and datediff(dd,date,getdate())<300

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors