Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Relative Day Filtering is calculating based on another time zone.

I created a report that provides previous day data, and it works very well, except one issue that I can't seem to figure out.

 

So, I have my Date filters set to grab previous day data (is in the last 1 day, and unchecked include today). This works great in the mornings, but as the afternoon comes around, it begins grabbing today's data. I know this uses UTC time zone, but I need to have the reports filter based on PST. This also creates issues with the report subscriptions.

 

How can I have the report keep the correct relative filtering all day? 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi shradhara2,

 

To achieve the localtime which will not be affected with successive calls, you should add an offset in your measure using DAX like below:

 

Local Time =
NOW () + TIME ( 8, 0, 0 )

 

Or you can use power query function DateTimeZone.FixedLocalNow to achieve your localtime instead.

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi shradhara2,

 

To achieve the localtime which will not be affected with successive calls, you should add an offset in your measure using DAX like below:

 

Local Time =
NOW () + TIME ( 8, 0, 0 )

 

Or you can use power query function DateTimeZone.FixedLocalNow to achieve your localtime instead.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.