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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Refresh Schedule Date

Hello,

I have a problem and need your inputs. Just to capture the dataset's last refresh date, I have created a blank query with code = DateTime.Time(DateTime.LocalNow()) & DateTime.Date(DateTime.LocalNow()) And scheduled teh refresh time at 7:30PM under time zone (UTC+05:30) - Mumbai, India.

 

The last refresh time shows at desktop is correct i.e. 7:30PM but on the published dashboard its showing 2:00 PM i.e. the gap of 4:30 hrs.

 

Could you please advise what setting I am missing or which time the server is taking? I think with the local desktop the function DateTime.Time(DateTime.LocalNow())  is getting correct local time but with published server its not getting the correct time though I have scheduled under time zone (UTC+05:30) - Mumbai, India. 

 

Please advise

Thanks!

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

There existing some gap for the time zone displayed in Power BI Service. The time zone in the service is effectively always set to UTC. So, you need to add the timezone offset to local time.

 

Here is a similar thread, please refer to the suggestion to modify the code for last refresh date:

Last Refresh of Data

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

There existing some gap for the time zone displayed in Power BI Service. The time zone in the service is effectively always set to UTC. So, you need to add the timezone offset to local time.

 

Here is a similar thread, please refer to the suggestion to modify the code for last refresh date:

Last Refresh of Data

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft

 

This seems to be proper work around to add hours from UTC. I will give it a try and will update here how it goes but I really appreciate your time in this matter.

 

Thank you!

Harshad

 

Anonymous
Not applicable

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.