<?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: Calculated date wrong on Power BI Server in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/343406#M3540</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my test, the&amp;nbsp;&lt;SPAN&gt;DateTime.LocalNow() function will display in UTC time ignore&amp;nbsp;the local region setting. So the report data is different from schedule refresh time.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Qiuyun Yu&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 09:14:36 GMT</pubDate>
    <dc:creator>v-qiuyu-msft</dc:creator>
    <dc:date>2018-01-23T09:14:36Z</dc:date>
    <item>
      <title>Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/341228#M3463</link>
      <description>&lt;P&gt;I have a "Last Refresh Date" field in my report that is populated from a manual query:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;let&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Source = #table(type table[LastRefresh=datetime], {{DateTime.LocalNow()}})&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Source&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run it locally in PowerBI Desktop it works fine. When I publish it to the on-premises report server, the date is wrong. I have confirmed the report regional settings are set to Australia. I have confirmed the report and database servers regional settings are set to Australia. I have confirmed that the date/time on the servers are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This report is scheduled to run every hour. When I look at the schedule in the "Manage" screen, the date and time are showing correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report details:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Schedule details:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Both screenshots were taken within 1 minute of each other, and I refreshed the report to make sure it was displaying the current details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the October version of the Power BI Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 01:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/341228#M3463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T01:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/343406#M3540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my test, the&amp;nbsp;&lt;SPAN&gt;DateTime.LocalNow() function will display in UTC time ignore&amp;nbsp;the local region setting. So the report data is different from schedule refresh time.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Qiuyun Yu&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/343406#M3540</guid>
      <dc:creator>v-qiuyu-msft</dc:creator>
      <dc:date>2018-01-23T09:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/343973#M3556</link>
      <description>&lt;P&gt;It's weird that the function displays the local time in the desktop program but not on the server. I know the web version is different, but I figured the server would function the same as the desktop software and use the regional settings (like the now() function in SSRS does). Especially since it is called "LocalNow" not "UTCNow".&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 00:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/343973#M3556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-24T00:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/352539#M3781</link>
      <description>&lt;P&gt;I had the same issue, date refreshed in Power Bi Desktop is not the same once calculate in Report Server Schedule Refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've solved the problem by adding my timezone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = #table(type table[LastRefresh=datetime], {{DateTime.LocalNow()}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"LocalDateTime" = Table.AddColumn(Source, "LastRefeshLocal", each DateTime.AddZone([LastRefresh],1), type datetimezone)&lt;BR /&gt;in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"LocalDateTime"&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:20:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/352539#M3781</guid>
      <dc:creator>Grumelo</dc:creator>
      <dc:date>2018-02-06T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/356272#M3862</link>
      <description>&lt;P&gt;That works great, thanks very much :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll just need to remember to adjust when daylight savings ends.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/356272#M3862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T07:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated date wrong on Power BI Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/1471663#M16520</link>
      <description>&lt;P&gt;3 years after -&amp;nbsp;&lt;SPAN&gt;DateTime.LocalNow() still doesn't show correct time even on Power BI Desktop :((&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 11:40:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-date-wrong-on-Power-BI-Server/m-p/1471663#M16520</guid>
      <dc:creator>gvg</dc:creator>
      <dc:date>2020-11-03T11:40:53Z</dc:date>
    </item>
  </channel>
</rss>

