legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,214
- Office Version
- 365
- Platform
- Windows
I am scraping a web page with a list of holidays with Power Query. The web page has a list of current and prior year holidays. I want to dynamically filter out prior years based on the current year we are in. I want to also keep future years. So in the table below I want filter out 2018 and 2019 (since we're in 2020) and show only 2020, 2021 and 2022. I don't want to click the filter drop down and simply remove prior years, but need a dynamic way (IF statement to check if we're in current year?) because this something that needs to happen every year.
Year | Data |
2018 | Table [Not Yet Expanded] |
2019 | Table [Not Yet Expanded] |
2020 | Table [Not Yet Expanded] |
2021 | Table [Not Yet Expanded] |
2022 | Table [Not Yet Expanded] |