Filter a column from earliest date in a column to 700 days out --- Power Query

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
138
Office Version
  1. 2016
Platform
  1. Windows
Ive been asked (not sure if this can even be done) filter a Date column 700 days from the earliest date in the column The Date column has work due from now 2021 - 2025. I did a filter listed below. Ideally, im looking for somthing more automatic.

SQL:
= Table.SelectRows(#"Promoted Headers", each [#"PLN-BD SchFin"] >= #date(2019, 11, 1) and [#"PLN-BD SchFin"] <= #date(2024, 4, 30))
 
I was meaning to do one or the other, not both. If you delete that last line (FilterStep...) in the advanced editor it should work.

When working in the user interface the UI creates the step name and writes the M code for that step.

When working in the advanced editor you write the M code and have to supply the step name.

Your Custom1 step and FilterStep are identical and you only need one of them, keeping just the Custom1 step where it is should solve it.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Works Absolutely perfect! You don't realize how much you saved me. Thank You Thank you & appreciate your patients.
 
Upvote 0

Forum statistics

Threads
1,223,661
Messages
6,173,647
Members
452,525
Latest member
DPOLKADOT

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