Using a named range in a filter

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,895
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
  8. 2003 or older
Platform
  1. Windows
currently I have a large amount of process data, 150k source, I want to get the number of processes by lane since last PM date
I reduce the columns down to lane, date, I have a named range in another tab called LastPM I create an additoinal column and flood it with LastPM

= Table.AddColumn(#"Changed Type", "LastPM", each Excel.CurrentWorkbook(){[Name="LastPM"]}[Content]{0}[LastPM])

I then test date against this new column and set to either 0 or 1

= Table.AddColumn(#"Changed Type1", "SincePM", each if [Date] > [LastPM] then 1 else 0)

I then filter SincePM=1 and do additional processing count per day etc by lane

What I would like to do instead of the above is filter Date by LastPM, but i get an error either due to syntax or not allowed
I create a dummy filter entry using todays date and then in advanced view I paste in [Name="LastPM"]}[Content]{0}[LastPM]

Some guidance would be great many 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.
Hi jimrward,

try
Power Query:
= let x = Table.ToRows(Excel.CurrentWorkbook(){[Name="LastPM"]}[Content]){0}{0} in Table.SelectRows(#"Changed Type", (y)=> y[Date] > x)

Regards
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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