<?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 Issues with date columns in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3310384#M106904</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to solve this issue if anyone can help. I've saved spreadsheets on the SharePoint folder and it has the Activity ID column and date columns please see the below snippet. The issue is the end date of the most recent spread in this case 29th can be less than the previous sheet's end date, is there a way it can pick up all the dates as per the most recent spreadsheet ignoring the data of the previous sheet? In power query I've done a transformation where it should pick up the data from the most recent file however if the end date of the recent spreadsheet is less than the previous then it throws an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spread dated 28th - data until 20th Aug 2023&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spread dated 29th has data until 21st July 2023.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 14:31:01 GMT</pubDate>
    <dc:creator>cool_333</dc:creator>
    <dc:date>2023-06-30T14:31:01Z</dc:date>
    <item>
      <title>Issues with date columns</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3310384#M106904</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to solve this issue if anyone can help. I've saved spreadsheets on the SharePoint folder and it has the Activity ID column and date columns please see the below snippet. The issue is the end date of the most recent spread in this case 29th can be less than the previous sheet's end date, is there a way it can pick up all the dates as per the most recent spreadsheet ignoring the data of the previous sheet? In power query I've done a transformation where it should pick up the data from the most recent file however if the end date of the recent spreadsheet is less than the previous then it throws an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spread dated 28th - data until 20th Aug 2023&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spread dated 29th has data until 21st July 2023.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:31:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3310384#M106904</guid>
      <dc:creator>cool_333</dc:creator>
      <dc:date>2023-06-30T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with date columns</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3313541#M107060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505766" data-lia-user-login="cool_333" class="lia-mention lia-mention-user"&gt;cool_333&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you connecting to &lt;SPAN&gt;the SharePoint folder and combining all files data into a single query? I guess that you have already selected the most recent file as the Sample file and transformed it in "Transform Sample File" query right? If so, you need to add a custom step in the "Transform Sample File" query to select the columns.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.SelectColumns(#"previous step", Table.ColumnNames(#"previous step"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend that you promote the date value row as column header, and remove the auto-generated "Changed Type" step. The&amp;nbsp;"Changed Type" step changes column types based on column names, this will sometimes cause an error when combining multiple queries. Then you can go to the combined single query. If it has an error, remove its auto-generated "Changed Type" step too. You will have the expected combined result then. You can change column types later manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Jing&lt;BR /&gt;If this post helps, please Accept it as Solution to help other members find it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 03:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3313541#M107060</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2023-07-04T03:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with date columns</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3314366#M107097</link>
      <description>&lt;P&gt;Superrrrrrrrrrrrrrr Thank you so much it worked :)))))))))))))))))))))))))))))))&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Issues-with-date-columns/m-p/3314366#M107097</guid>
      <dc:creator>cool_333</dc:creator>
      <dc:date>2023-07-04T11:35:55Z</dc:date>
    </item>
  </channel>
</rss>

