Power Query: Filter a table based on a date in a List

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
I want to filter a table in Power Query to only show items where the data is = or > the date in a List (and if the the list is null to show all)

My list name is User_CostSource_Date. The date field name, in the table I want to filter, is [StartDate].

Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Do you mean you have multiple dates in a list, or just one?
 
Upvote 0
You should be able to filter using
Power Query:
User_CostSource_Date{0}
then?
 
Upvote 0
I'm sorry, Rory. But I am lost I was thinking there was a formula for Dates similar to filtering other data types. Similar to how this one filters

LIST CONTAINS

'=Table.SelectRows(ModelPropricer_vdataProposalMaterial, each List.Contains(SelectedProposal,[ParentId]) or List.NonNullCount(SelectedProposal)=0),

But for a date where its equal to or greater than the one date in the List.
 
Upvote 0
You'd just do a straightforward [field]>=User_CostSource_Date{0} would you not?
 
Upvote 0
I dont know. But I will try that. Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,601
Messages
6,173,293
Members
452,508
Latest member
SaltySquid

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