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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Frixel
Post Prodigy
Post Prodigy

Refresh DateTime in power Bi Service not the right time

Hello,

 

I will create a vizual in my model for when the model is refresh.

 

I create this in the Power Bi Desktop and there the time is correct.

When i publish it to the Power Bi Service and the is a refresh the time is incorrect. (minus 2 hours) I am stay in Netherlands, Amsterdam.

 

What is going wrong?

 

Frixel_3-1729668105276.png

 

 

 

 

Frixel_0-1729667869403.png

 

 

Frixel_2-1729667898056.png

 

1 ACCEPTED SOLUTION
Frixel
Post Prodigy
Post Prodigy

Hi all,

 

thanks for your helps, i haven it now fixed and working with this video

YouTube 

View solution in original post

10 REPLIES 10
Frixel
Post Prodigy
Post Prodigy

Hi all,

 

thanks for your helps, i haven it now fixed and working with this video

YouTube 

Jonvoge
Super User
Super User

Hi Frixel

 

You're luckily not the first to discover this.

Try the fix mentioned in this post: Solved: Last Refresh Date change Timezone - Microsoft Fabric Community

Date.From(DateTime.FixedLocalNow())



_____________________________________________________
I hope my comment was helpful.
If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.
Find me on LinkedIn, Sessionize, or my blog Downhill Data

Hi @Jonvoge 

 

When i use the " Date.From(DateTime.FixedLocalNow())"  i only get the date and not the time

 

Frixel_0-1729668992248.png

 

Hi Frixel

 

You can probably just use DateTime.FixedLocalNow(), and omit the date.from part that I included before.

_____________________________________________________
I hope my comment was helpful.
If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.
Find me on LinkedIn, Sessionize, or my blog Downhill Data

Hi @Jonvoge 

 

And what choose i here for the richt convert?

 

Frixel_0-1729671565998.png

 

I believe Date/Time is sufficient... But I could be wrong. Try both!

_____________________________________________________
I hope my comment was helpful.
If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.
Find me on LinkedIn, Sessionize, or my blog Downhill Data

I try both but always in the service the time is 2 hours earlyer than it is.

 

Frixel_0-1729672028358.png

 

Hey @Frixel ,
try this one.
= DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),2)

I solved this topic this way for the moment.
I have to check the solution after switching the summer time to winter time.
Maybe it would be this by the end of October
= DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),1)

Service switch always to UTC.

Regards

Hi @sergej_og 

 

Thanks for your helps but hen i get this.

 

Frixel_0-1729669919106.png

 

I created a new datetime colomn from colomn 1 like this 

Frixel_0-1729670759442.png

Then it is correct time in the desktop but also in the service i miss 2 hours.

 

Frixel_1-1729670865158.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.