Forum Discussion

asriniva33's avatar
asriniva33
Frequent Visitor
10 years ago
Solved

Issue with DATEADD function in Direct Query Mode

Hi , I am working in Direct Query Mode . And i wanted to shift my date column say by "2 days".  When using DATEADD function, I am getting an error "DATEADD function is not allowed as part of calcula...
  • Eric_Zhang's avatar
    Eric_Zhang
    10 years ago

    asriniva33

     

    I can't find DATEADD in DirectQuery either, even with that option enabled. As a workaround, to shift date by days, try [date]+1/[date]-1. Or with DATE(YEAR([dateCol]),MONTH([dateCol]),Day([dateCol])+1) by Year, Month, Day.

     

    Thanks for your feedback, we will report and confirm this internally and would post back if there comes any update.