Forum Discussion

blytonpereira's avatar
blytonpereira
Helper II
7 years ago
Solved

Powerquery Dynamic LOOKUP value

Hi everyone,   I would like ot make an IF statement based ona  vLOOKUP in Powerquery.   For example I have the followingcolumns:   Date                          Financial Month Number       01...
  • AlexisOlson's avatar
    AlexisOlson
    7 years ago

    The previous step name is usually of the form #"Step Name". You have to use the octothorpe and quotes unless you renamed that step in the advanced editor. I'm guessing this is what you want:

     

    = List.Single(
        Table.SelectRows(
            #"Fin YearMonthM",
            each [Date] = CurrentDate
        )[Fin MonthNo]
    )