Get Max Date

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,600
Office Version
  1. 365
Platform
  1. Windows
I need to return a latest date from a table but filter down on an ID

I have 2 tables
  • AD Visit - Holds details of visit dates and can have multiple visits for an ID
  • AD Completed - Holds the ID and needs to show the latest date for an ID

The last vist date needs to work on up to the last 8 quarters so as well as filtering on the ID, I need to filter on the dats in the quarter only.

I hoped the following would work but it is returning an error stating only 2 arguments can be passed in the MAXX function
Code:
=maxx(filter('AD Visit',[Company ID]='AD Expected'[Co.No.]),filter('AD Visit',[Completed on]>=[QCStart]),filter('AD Visit',[Completed on]<=[QCEnd]),'AD Visit'[Completed on])
Any help would be appreciated.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Unfortunately not as its NDAed....

In a very simple format it could consist of the following though as per the column descriptions in the formula
AD Visit Table
Col A - Company ID
Col B - Completed On (this is the last visit date)

AD Expected Table
Col A - Co.No.
Col B - Result of the formula

The Measures QCEnd & QCStart are basically the Quarter start and end dates
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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