<?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 query editor last date refresh in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/533840#M16392</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;How do I set up the query editor in m language to create a column that will show me the last refresh date of the source data?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Oct 2018 15:48:56 GMT</pubDate>
    <dc:creator>krzysztof</dc:creator>
    <dc:date>2018-10-04T15:48:56Z</dc:date>
    <item>
      <title>query editor last date refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/533840#M16392</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;How do I set up the query editor in m language to create a column that will show me the last refresh date of the source data?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 15:48:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/533840#M16392</guid>
      <dc:creator>krzysztof</dc:creator>
      <dc:date>2018-10-04T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: query editor last date refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/534028#M16403</link>
      <description>&lt;P&gt;Did you find a resolution to this yet?&amp;nbsp; This is what I've been doing, but I'm interested to know if there is a better (more straightforward) way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) Depending on the data source, I've been creating a new datetime column at the source to get the current timestamp.&amp;nbsp; This can be included in an existing query or as a new query in the PBI Query Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) On the PBI Desktop, I create a new measure to return that current timestamp.&amp;nbsp; For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Last Refresh = "Last Refresh : " &amp;amp; LASTDATE('PBI_LAST_REFRESH_DATE'[REFRESH_DATE])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.) On the canvas, I use a standard Card visual to display the value of that measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the data source is refreshed, then the current timestamp column is recalculated at the source &amp;amp; re-imported into PBI.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 20:50:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/534028#M16403</guid>
      <dc:creator>jshutters</dc:creator>
      <dc:date>2018-10-04T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: query editor last date refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/537221#M16567</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/77055"&gt;@krzysztof&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may use&amp;nbsp;&lt;A class="" title="DateTime functions" href="https://msdn.microsoft.com/en-us/query-bi/m/datetime-functions" target="_blank"&gt;DateTime functions&lt;/A&gt;.&lt;/P&gt;
&lt;PRE&gt;DateTime.LocalNow()&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 09:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query-editor-last-date-refresh/m-p/537221#M16567</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-10-09T09:05:35Z</dc:date>
    </item>
  </channel>
</rss>

