Forum Discussion

nrqz's avatar
nrqz
Frequent Visitor
2 years ago
Solved

Dynamic Filter on a Date/Time Column?

I have a report in Power BI desktop. I'm trying to setup a dynamic filter on a date/time column that pulls in the past 8 hours worth of data based on the time when the report gets refreshed/reloaded....
  • lbendlin's avatar
    lbendlin
    2 years ago

    in Power Query you need to use the old school #duration(0,8,0,0)

     

    DateTime.LocalNow()-duration(0,8,0,0)