Forum Discussion
ironboy0418
Helper II
3 years agoHow 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?
FreemanZ
Super User
3 years agoironboy0418
Helper II
3 years agothanks 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?
- FreemanZ3 years ago
Super User
hi ironboy0418
= Table.SelectRows(#"Filtered Rows4", each Date.IsInPreviousNYears([Date], 2))
- ironboy04183 years ago
Helper II
- ironboy04183 years ago
Helper II