Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculated Column => IF date < MAX date[column]

Hi guys, first of all thanks for helping.   I think the image below explains easily the problem (I want to created the "New Column" inside my table.   I was trying to return the "max date...
  • Icey's avatar
    6 years ago

    Hello @ferbyrez ,

    I understand that you want to use the MAX date of the interview date to compare with the date of the interview. If my understanding is correct, please keep looking. If my understanding is wrong, please tell me more details. It is best to present myself in the form of screenshots or forms.

    1.My sample data is as follows. I have more IDs because I think it's better to show.

    samp.png

    2. I write the test measurement based on your image.

    Test = IF(MAX('Table'[Interview Date])<MAX('Table'[Creation Date]),"Yes","No")

    3. The Maximum date measurement is as follows. I use the ALLEXCEPT function.

    Max Date = CALCULATE(MAX('Table'[Interview Date]),ALLEXCEPT('Table','Table'[ID]))

    4. The new column you want to create is written with measure.

    Measure = IF('Table'[Test]="Yes",IF(MAX('Table'[Interview Date])<[Max Date],"Yes"))

    re.png

    More details can be found here.

    Best regards

    Icey

    If this post helps,then consider Accepting it as the solution to help other members find it more quickly.