Forum Discussion
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-msftCommunity 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,
KellyDid I answer your question? Mark my post as a solution!- soundguy2Helper 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-msftCommunity 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,
KellyDid I answer your question? Mark my post as a solution!
- awille21Regular Visitor
Not exactly a perfect fix, but a workaround that worked for me was to apply the filter to the dataset in Power Query. Basically just filtering out any data that isn't from today, then removing the filter entirely within the report.
Not my solution, here is the link to post where I initally saw it: https://community.fabric.microsoft.com/t5/Desktop/Relative-moving-Forward-one-day-after-8PM/td-p/1803497