Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Max Month Year

Hi, I've simple below table, I need new custom column with only Max (MonthYear) then show 1 else 0. Tried this example but no luck   LastDateInData = IF ( Table1[OrderDate] = MAX ( Table1[OrderDat...
  • AllisonKennedy's avatar
    5 years ago

    Anonymous  Try using Variable or EARLIER function: 

     

    LastDateInData =
    IF ( 
    COUNTROWS( FILTER( Table1, Table1[OrderDate] > EARLIER ( Table1[OrderDate] ) ) ) =0 , 1, 0 )