<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI Report server change my date fields in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2446962#M23660</link>
    <description>&lt;P&gt;The usual reason for dates shifting by x number of hours is a difference in the timezone settings between your PC and the server running PBIRS and you have some step in your query converting a timestamp from UTC to "local time". My guess would be that you are probably in EDT (UTC-5) and the PBIRS server has been set at UTC time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when you upload the data it has been adjusted to UTC-5 clicking the refresh button in PBIRS does not re-load the data it merely causes the visuals to re-query the existing data model. It is only when a scheduled refresh happens that the data is read from the source system and any transformations in the queries are applied. If you do have a step converting the times to a "local time" when this runs on the server it will calculate using the timezone setting on the server and this is different you get a different local time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simple fix is to use something like DateTimeZone.SwitchZone, but that does not account for daylight savings. (see here &lt;A href="https://blog.crossjoin.co.uk/2017/03/28/daylight-saving-time-and-time-zones-in-m/" target="_blank"&gt;https://blog.crossjoin.co.uk/2017/03/28/daylight-saving-time-and-time-zones-in-m/&lt;/A&gt; for a description of&amp;nbsp; this issue).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are just converting to your own timezone you may be able to build your own function using your local daylight savings rules (see&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem with daylight savings that governments can (and do) change the rules whenever they like, making it hard to code them into a system&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 23:51:48 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2022-04-08T23:51:48Z</dc:date>
    <item>
      <title>Power BI Report server change my date fields</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2446563#M23653</link>
      <description>&lt;P&gt;Hi, guys, I have a problem with Power BI Report Server (PBIRS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DATE column in my PBIX that is changed when it is refreshed in PBIRS. It is a DATE field, not calculated. Comes directly from my table in MySql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working locally using Power BI Desktop for Report Server (PBIDRS), the dates look normal. Let's say that I refresh my PBIX and none of the dates in my column are greater than the time I am running it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I publish the dashboard in Web Services, dates look normal, even if I refresh the dashboard.&lt;/P&gt;&lt;P&gt;But, if I publish the dashboard in PBIRS, while it is not refreshed, the dates are normal, but when it is refreshed by schedule, the dates jump 5 hours ahead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we were talking about a calculated refresh date, I know I will receive a UTC date. That is the server’s way.&lt;/P&gt;&lt;P&gt;But why MY data? Is like I am using a sales amount and the server is modifying MY TABLE data adding a fixed amount to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2446563#M23653</guid>
      <dc:creator>jguerrero</dc:creator>
      <dc:date>2022-04-08T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report server change my date fields</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2446962#M23660</link>
      <description>&lt;P&gt;The usual reason for dates shifting by x number of hours is a difference in the timezone settings between your PC and the server running PBIRS and you have some step in your query converting a timestamp from UTC to "local time". My guess would be that you are probably in EDT (UTC-5) and the PBIRS server has been set at UTC time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when you upload the data it has been adjusted to UTC-5 clicking the refresh button in PBIRS does not re-load the data it merely causes the visuals to re-query the existing data model. It is only when a scheduled refresh happens that the data is read from the source system and any transformations in the queries are applied. If you do have a step converting the times to a "local time" when this runs on the server it will calculate using the timezone setting on the server and this is different you get a different local time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simple fix is to use something like DateTimeZone.SwitchZone, but that does not account for daylight savings. (see here &lt;A href="https://blog.crossjoin.co.uk/2017/03/28/daylight-saving-time-and-time-zones-in-m/" target="_blank"&gt;https://blog.crossjoin.co.uk/2017/03/28/daylight-saving-time-and-time-zones-in-m/&lt;/A&gt; for a description of&amp;nbsp; this issue).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are just converting to your own timezone you may be able to build your own function using your local daylight savings rules (see&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem with daylight savings that governments can (and do) change the rules whenever they like, making it hard to code them into a system&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 23:51:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2446962#M23660</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-04-08T23:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report server change my date fields</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2447372#M23663</link>
      <description>&lt;P&gt;Thank you d_gosbell.&lt;/P&gt;&lt;P&gt;The DW and PBIRS server is the same a it is in UTC - 5 US.&lt;/P&gt;&lt;P&gt;Let me check the extraction propcess in all the related tables. Maybe one of them is doing a format or time zone change that is affecting the entire process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will post an update here after that.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2022 19:11:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2447372#M23663</guid>
      <dc:creator>jguerrero</dc:creator>
      <dc:date>2022-04-09T19:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report server change my date fields</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2450469#M23686</link>
      <description>&lt;P&gt;I found an answer in the second link you sent me.&lt;/P&gt;&lt;P&gt;(&lt;A href="https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/Convert-Date-Time-in-UTC-to-Local-Time-with-Daylight-savings/td-p/789919&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Still it looks pretty odd to me that table content is modified by the server, but at least my problem is now solved as in the link attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanl you d_gosbell. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 19:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-server-change-my-date-fields/m-p/2450469#M23686</guid>
      <dc:creator>jguerrero</dc:creator>
      <dc:date>2022-04-11T19:50:49Z</dc:date>
    </item>
  </channel>
</rss>

