Forum Discussion

MikeDubya's avatar
MikeDubya
Helper I
3 years ago
Solved

Getting a specific date value based on another columns value

Hello all, First time poster, long time reader. I have a set of data that I need to get a specific date out of and I am just not getting what I need. Here is a basic snippit of the data:   ...
  • FreemanZ's avatar
    FreemanZ
    3 years ago

    hi MikeDubya 

    Sorry i misconsidered that last point. try like:
    Measure =
    VAR _table=
    CALCULATETABLE(
            VALUES(TableName[Col1]),
            TableName[Col2]=1
    )
    VAR _top3 =
    TOPN(3, _table, TableName[Col1] )
    VAR _top2=
    TOPN(2, _table, TableName[Col1] )
    RETURN
    EDATE(EXCEPT(_top3, _top2), 3)