Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Capture oldest date for the same item

Hi,

How to create a new date column if the material_storage has the same Date Extract then capture the oldest date for Date Received?

Date ExtractMaterial_StorageDate ReceivedQtyNew Date
17-04-2103-60787-03A_100105-10-20205-10-20
17-04-2103-60787-03A_100113-11-20105-10-20
17-04-2103-60787-03A_100120-01-21105-10-20
10-04-2103-60787-03A_100122-03-21116-01-21
10-04-2103-60787-03A_100116-01-21216-01-21
  • Hello, try something like this:

    OldestDate = CALCULATE(MINX(Table1,Table1[Date Received]), ALLEXCEPT(Table1,Table1[Date Extract]))

     

    You might need to play around with the table name to what ever your is.

     

     

2 Replies

  • samdthompson's avatar
    samdthompson
    Memorable Member

    Hello, try something like this:

    OldestDate = CALCULATE(MINX(Table1,Table1[Date Received]), ALLEXCEPT(Table1,Table1[Date Extract]))

     

    You might need to play around with the table name to what ever your is.