Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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:
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:
What causes this and how do can I fix it?
Thank you in advance.
Matlotlo
Solved! Go to Solution.
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.
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:
Thanks!
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:
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:
Thanks!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |