Forum Discussion
ironboy0418
3 years agoHelper II
How can we limit the rows by date column using Power Query Advanced Editor?
I have more than 1 million rows of data and the objective is to limit it only for the past 2 years. Is it possible to do it in Power Query Advanced editor?
7 Replies
- FreemanZSuper User
- ironboy0418Helper II
thanks FreemanZ 🙂 Is there a way to filter it by using Power Query M Language? My objective is to filter only the data for the past 2 years. Ex. Date>= January 1, 2022 and Date <= Yesterday?
- FreemanZSuper User
hi ironboy0418
= Table.SelectRows(#"Filtered Rows4", each Date.IsInPreviousNYears([Date], 2))