Forum Discussion

soundguy2's avatar
soundguy2
Helper I
6 years ago

Relative Date Filtering - date moving ahead too early

I'm attempting to use Relative Date Filters to display sales in the last 1 day (the current calendar date).  It works fine for most of the day but at about 5pm PST the filter moves to the next calendar date, 7 hours too early.  It does this whether using Power BI Desktop or the Power BI Service.  Is there any way to align the time used in the Relative Date Filter with PST?after 5pm

 

before 5pm

 

7 Replies

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

    Hi soundguy2

     

    1,Go to query editor>Click on the button of date column on the left top corner and choose "Date/Time",see below:

    And then you will see what time is set in your date column,here you see:

    Then find the time difference between the column and your local time,then add a custom column using the M code below to adjust the time:

     

    custom=[Date]+#duration(0,17,51,0)

     

    And you will see:

     

     

    Save and use the new column in your visual and apply filters.

     

    Here is a sample .pbxi file you can refer to.

     
    Best Regards,
    Kelly
    Did I answer your question? Mark my post as a solution!

     

     

    • soundguy2's avatar
      soundguy2
      Helper I

      Thank you Kelly for trying to solve this issue for me.  Unfortunately, the Relative Date Filter still moves forward at 5PM PST, and no amount of manipulating the data seems to fix that.  

       

      For now, it looks like the only solution is not to refresh the report after 5PM (not ideal, but better than a 1PM cutoff).

       

      PowerBI Team - Can the functionality of the Relative Date Filter be improved?  It's usefulness is limited if it's not syncronized to the user's timezone.

       

      Regards,

      Brian

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

        Hi soundguy2 ,

         

        It doesnt make sense,as you have modified the datetime column,there shouldnt be any time difference between ...

        Did you use the new date/time column in the date field?

         

        Best Regards,
        Kelly
        Did I answer your question? Mark my post as a solution!