Second Date

cnestg8r

Active Member
Joined
Dec 26, 2005
Messages
287
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Given a filtered column example of production dates:

It is clear how to get the first and last date, but I need the second production date. Note that any date could have multiple repeats. I have gotten it in DAX Studio using LASTDATE and TOPN, but I am stuck creating it as a calculated column.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
This is from DAX Studio...

LASTDATE(TOPN(2,VALUES(Table1[OrderDate]),Table1[OrderDate],1)))
 
Upvote 0
Too easy. The second date is the first date greater than the real first date.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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