Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Add column, calculated index

I need a way to add a calculated index column similar to this example      * does not include blank * orders the dates in ascending order * no values duplicated.    I'm really hitting a ...
  • az38's avatar
    az38
    6 years ago

    Anonymous 

    below sentence should work fine

    Index = 
    var CurrentDate = Table[Date]
    
    RETURN
    IF(
     ISBLANK(CurrentDate), BLANK(),
     CALCULATE(COUNTROWS(Table), Table[Date] <= CurrentDate, Table[Date] <> BLANK() ) 
    )