The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 🙂
Hi @kzielinska
If you just want to extrat the last 300 days of data, you can just filter the data .
Insert a new step
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?
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?
My query is like this:
select * from table where date<getdate() and datediff(dd,date,getdate())<300
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
36 | |
23 | |
23 | |
21 | |
16 |