Forum Discussion

SamTrexler's avatar
SamTrexler
Helper IV
9 years ago
Solved

DirectQuery not updating on date

I have a report which uses DirectQuery against a SQL Server on-premises database. The query contains this statement for filtering the rows:   #"Filtered Rows" = Table.SelectRows(dbo_Tests, each Dat...
  • v-yulgu-msft's avatar
    9 years ago

    Hi SamTrexler,

     

    Currently, it seems that Date.IsInPreviousNDays and Date.IsInCurrentDay fucntion does not work as expected in Direct Query mode. Someone else has submitted this behaviour as an issue here: Date slider range does not update as data changes (using direct query). It describes similar issue as yours. As suggested in this thread, you can work around this issue via moving date filter to a database view. Use this view to schedule refresh source table, then, we can get up to date result in Power BI.

     

    Regards,
    Yuliana Gu