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
Arranafc19
Helper IV
Helper IV

Difference between date calculation value in Desktop v Report Service

Hi

 

Has anybody been having any issues lately relating to a difference in time between the Power Bi Service and the desktop ?

 

I have a dax measure which is 

Date of Last Refresh = NOW()  which I am using to show the last refresh on a direct query.
 
When I view this in desktop I get this 
 
Arranafc19_1-1618324235154.png

 


 

However when I view the same measure in the service I get this :

 

Arranafc19_0-1618324321331.png

 


 

There is an hour in the difference an I believe this started happening when the time zone changed here from UTC  to UTC + 1.

 

Anyone have any idea how I can resolve this ?

1 ACCEPTED SOLUTION
_sfrost
Solution Specialist
Solution Specialist

@Arranafc19 

Power BI Service generally uses UTC time. Since you are using NOW() in your calculation, when the dataset is refreshed in service, it will take the UTC time, which could be different from the datetime you see in desktop which depends on the local system datetime.

If you want to see the same datetime as Power BI service, you can play with UTCNOW() function in your calculations.

 

Did I answer your questions? Give a thumbs up and accept this post as solution!

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Arranafc19 ,

 

For Date column, it will always show UTC time on Power BI Service, you can create a custom column and use DataTimeZone functions to set time zone. For more details, please refer to articles below:

 

Solving DAX Time Zone Issue in Power BI

Daylight Saving Time And Time Zones In M

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

_sfrost
Solution Specialist
Solution Specialist

@Arranafc19 

Power BI Service generally uses UTC time. Since you are using NOW() in your calculation, when the dataset is refreshed in service, it will take the UTC time, which could be different from the datetime you see in desktop which depends on the local system datetime.

If you want to see the same datetime as Power BI service, you can play with UTCNOW() function in your calculations.

 

Did I answer your questions? Give a thumbs up and accept this post as solution!

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.

Top Solution Authors
Top Kudoed Authors