Forum Discussion
Anonymous
7 years agoNot applicable
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...
- 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.
Ashish_Mathur
Super User
7 years agoHi,
You get that error because you are writing that as a measure. As clearly stated in my previous message, please write your formula as a calculated column formula. Change the Direction of both relationships from Both to Single. Here is a screenshot of the result.
Anonymous
7 years agoNot applicable
Wow... My fault... I didn't know that calculated measure couldn't do what column could.
Thank you so much.
- Ashish_Mathur7 years ago
Super User
You are welcome.