Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

OLE DB or ODBC error: [Expression.Error] We cannot apply operator .. to types Null and Number..

This is what I have typed and it works in power query without errors. let StDt = [STARTDATE], AllDates = {Number.From([STARTDATE])..Number.From([ENDDATE])}, StofMonthDate = List.Distinct( List...
  • Vijay_A_Verma's avatar
    4 years ago

    The first statement has to be a Source statement. That source should have columns like STARTDATE and ENDDATE.

    OR

    You will need to allocate some value to STARTDATE and ENDDATE variables. The moment you say [STARTDATE], it expects it to come from a table.