Filtering 2018 to Date

joslaz

Board Regular
Joined
May 24, 2018
Messages
76
Hey guys!

I have in Excel/ Power Query a regular date column (DD.MM.YYYY).
I would like to filter this column for year 2018 in total and 2019 to date.
So for today 01.01.2018-05.02.2019.

Is there any function for this?
How can I manage this?


best regards
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
In Power Query I would take the quick and easy approach of creating a new year column by extracting the year part of the date which is easy to do via the UI. Then filter by that column.
 
Upvote 0
Ok, and how can I get the rows for 2018 + 2019 to today?
Just filtering the year is not appropriate
 
Upvote 0
How can I filtering 2018 (total) AND 2019 (until today)?
I want 01.01.2018 - today.
Year to day + last year.

I dont want the dates in future.
Your approach would display alle dates for 2018 and 2019
 
Upvote 0
Try this:
Table.SelectRows(#"ChangedType", each [date] >= #date(2018, 1, 1) and [date] <= Date.From(DateTime.LocalNow()))

Peter
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top