<?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 Data Load Editor trying to return previous 12 months in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125266#M12877</link>
    <description>&lt;P&gt;Hello Qlik Group,&lt;/P&gt;
&lt;P&gt;I'm trying to return the last 12 months when loading data from a QVD. I'm able to return previous day but not month. The logic below is what I have but not sure if my syntax is not formatted properly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vNoOfMonths = 12;&lt;BR /&gt;For i = 0 to vNoOfMonths-1&lt;BR /&gt;//Let vMonth = Date(AddMonths(Today(),-$(i)),'YYYYMM');// this works for previous day&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let vMonth = Date(AddMonths(Month(),-$(i)),'YYYYMM'); // Returns Error&lt;/P&gt;
&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;Cannot open file: 'lib://QVD -&amp;nbsp; (Native Path: *** System error: ***)&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Trace $(vMonth);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 19:35:35 GMT</pubDate>
    <dc:creator>prosell8</dc:creator>
    <dc:date>2023-10-04T19:35:35Z</dc:date>
    <item>
      <title>Data Load Editor trying to return previous 12 months</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125266#M12877</link>
      <description>&lt;P&gt;Hello Qlik Group,&lt;/P&gt;
&lt;P&gt;I'm trying to return the last 12 months when loading data from a QVD. I'm able to return previous day but not month. The logic below is what I have but not sure if my syntax is not formatted properly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vNoOfMonths = 12;&lt;BR /&gt;For i = 0 to vNoOfMonths-1&lt;BR /&gt;//Let vMonth = Date(AddMonths(Today(),-$(i)),'YYYYMM');// this works for previous day&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let vMonth = Date(AddMonths(Month(),-$(i)),'YYYYMM'); // Returns Error&lt;/P&gt;
&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;
&lt;DIV class="edc_error"&gt;Cannot open file: 'lib://QVD -&amp;nbsp; (Native Path: *** System error: ***)&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Trace $(vMonth);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 19:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125266#M12877</guid>
      <dc:creator>prosell8</dc:creator>
      <dc:date>2023-10-04T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor trying to return previous 12 months</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125272#M12878</link>
      <description>&lt;P&gt;Month() must have a parameter.&lt;/P&gt;
&lt;P&gt;You probably want a date representing the month. Try&amp;nbsp;MonthStart(Today())&amp;nbsp;instead. Hence:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vMonth = Date(AddMonths(MonthStart(Today()),-i),'YYYYMM');&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 19:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125272#M12878</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2023-10-04T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor trying to return previous 12 months</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125281#M12879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for the solution. Unfortunately, it stills brings in October 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125281#M12879</guid>
      <dc:creator>prosell8</dc:creator>
      <dc:date>2023-10-04T20:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor trying to return previous 12 months</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125661#M12881</link>
      <description>&lt;P&gt;Found a solution to my issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let vMonth = Date(AddMonths(AddMonths(today()-1,-1),-$(i)),'YYYYMM');&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Load-Editor-trying-to-return-previous-12-months/m-p/2125661#M12881</guid>
      <dc:creator>prosell8</dc:creator>
      <dc:date>2023-10-05T15:25:08Z</dc:date>
    </item>
  </channel>
</rss>

