Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Taking the min with condition

table 1 have email sent date: table 2 has when they visited the website and they could have visited multiple times. The two tables have ID relationship.   I would like to pull the fir...
  • Ashish_Mathur's avatar
    7 years ago

    Hi,

    Write this calculated column formula in Table1.  You will need to change the Table and column names

    =CALCULATE(MIN(Table2[Date]),FILTER(Table2,Table2[ID]=EARLIER(Table1[ID])&&Table2[Date]>EARLIER(Table1[Date])))

    Hope this helps.