Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Date.adddays function not supported in Direct Query Mode ?

Hello 

 

Trying to add a custom column in Query editor with date function in direct query mode is giving a message "Step is not supported in DIrect Query Mode". 

 

Function used is -  Date.AddDays([OrderDate],[CustTerms.DueDays])

 

Order date is already converted to Date format and  Due days is a whole number. Is this not supported in Direct Query mode. What will be the alternative option. I am trying to add number of days to an existing date. 

 

  • Hi Anonymous ,

     

    Based on my test, we cannot use the function for direct query.

     

    We can use calculated column to work around.

     

    Column = 'Product'[SalesDate] +3

     

     

     

2 Replies

  • v-frfei-msft's avatar
    v-frfei-msft
    Community Support

    Hi Anonymous ,

     

    Based on my test, we cannot use the function for direct query.

     

    We can use calculated column to work around.

     

    Column = 'Product'[SalesDate] +3

     

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you. That was much simpler option