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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Tlotly
Resolver II
Resolver II

Hours on a visual changing when refreshing on Report server

Good day

 

I have a report with a visual which shows views per hour.  The report works perfectly on desktop version and when I save/publish it on the Report Server:

 

Desktop version:

Tlotly_0-1669789561916.png

The report is scheduled to refreshed every hour on Report Server. So as soon as the scheduled refresh runs, it throws out the other hours, and they will only end on 12pm:

 

Scheduled refresh:

Tlotly_1-1669789708512.png

 

What causes this and how do can I fix it?

 

Thank you in advance.

Matlotlo

2 ACCEPTED SOLUTIONS
d_gosbell
Super User
Super User

Issues like this are often caused by having code in Power Query that is dependant on the local timezone of the machine running the code and then having the server set with a different timezone to your client machine. So you may want to check if you have any calls doing anything like DateTimeZone.ToLocal and/or check the timezone setting on the server machine.

View solution in original post

Hi @d_gosbell 

Update:

Thank you for the response. It helped a lot as I managed to finally resolve the problem.

 

Firstly, I changed the format of my date column ( [TimeStart]) on Power Query to datetime. I then created a custom column using my date column i.e. DateTime.ToText([TimeStart],"dd-MM-yyyy HH:mm:ss"). Lastly, I used the custom column to create the Hours column, and it works perfectly.

 

This is how it's showing now after scheduled refresh on Report Server:

Tlotly_0-1670829667508.png

 

Thanks!

View solution in original post

3 REPLIES 3
d_gosbell
Super User
Super User

Issues like this are often caused by having code in Power Query that is dependant on the local timezone of the machine running the code and then having the server set with a different timezone to your client machine. So you may want to check if you have any calls doing anything like DateTimeZone.ToLocal and/or check the timezone setting on the server machine.

Thank you for the response. 

I'm not sure if I checked the timezones properly, but I formatted the date to datetimezone. Then created the hours that I'm using on the visual from the same datetimezone date. 

Dax used to create the hour column:

Hours1 = FORMAT([TimeStart - hours - Copy.2],"HH AM/PM")
 
Date column:
Tlotly_2-1670308630822.png

 

I also checked the format on my machine as well as on the server, it's using the timezone below:
Tlotly_0-1670308467596.png

 

It's still not working after the server refresh, it goes back to showing only 12 hours.

 

Thank you

Matlotlo

 

Hi @d_gosbell 

Update:

Thank you for the response. It helped a lot as I managed to finally resolve the problem.

 

Firstly, I changed the format of my date column ( [TimeStart]) on Power Query to datetime. I then created a custom column using my date column i.e. DateTime.ToText([TimeStart],"dd-MM-yyyy HH:mm:ss"). Lastly, I used the custom column to create the Hours column, and it works perfectly.

 

This is how it's showing now after scheduled refresh on Report Server:

Tlotly_0-1670829667508.png

 

Thanks!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors