<?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 Dynamic date condition in QlikView / Nprinting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-date-condition-in-QlikView-Nprinting/m-p/1366783#M418222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to setup a dynamic filter condition for a monthly reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the current date / month (today) the Report should include the previous month, the last two month or the last quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I run the report in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;January - the Report should include data from the last Quarter of the previous Year&lt;/P&gt;&lt;P&gt;February - the Report should include data only from January of the current Year&lt;/P&gt;&lt;P&gt;March - the Report should include data from January and February&lt;/P&gt;&lt;P&gt;April - the Report should include data from the previous Quarter (January to March)&lt;/P&gt;&lt;P&gt;Mai - only April data&lt;/P&gt;&lt;P&gt;June - April and Mai data&lt;/P&gt;&lt;P&gt;July - the previous Quarter (April to June)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to solve this question with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 01 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 02 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 03 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 04 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 05 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 06 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 07 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 08 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 09 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 10 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 11 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 12 , AddMonths(TODAY(), - 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )))))))))))) as CONDITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But result of this formula is the calculated Day/Month and not the period of one or two Month or the last Quarter as whished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 08:40:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-18T08:40:27Z</dc:date>
    <item>
      <title>Dynamic date condition in QlikView / Nprinting</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-condition-in-QlikView-Nprinting/m-p/1366783#M418222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to setup a dynamic filter condition for a monthly reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the current date / month (today) the Report should include the previous month, the last two month or the last quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I run the report in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;January - the Report should include data from the last Quarter of the previous Year&lt;/P&gt;&lt;P&gt;February - the Report should include data only from January of the current Year&lt;/P&gt;&lt;P&gt;March - the Report should include data from January and February&lt;/P&gt;&lt;P&gt;April - the Report should include data from the previous Quarter (January to March)&lt;/P&gt;&lt;P&gt;Mai - only April data&lt;/P&gt;&lt;P&gt;June - April and Mai data&lt;/P&gt;&lt;P&gt;July - the previous Quarter (April to June)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to solve this question with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 01 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 02 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 03 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 04 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 05 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 06 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 07 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 08 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 09 , AddMonths(TODAY(), - 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 10 , AddMonths(TODAY(), - 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 11 , AddMonths(TODAY(), - 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(MONTH = 12 , AddMonths(TODAY(), - 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )))))))))))) as CONDITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But result of this formula is the calculated Day/Month and not the period of one or two Month or the last Quarter as whished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 08:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-condition-in-QlikView-Nprinting/m-p/1366783#M418222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T08:40:27Z</dc:date>
    </item>
  </channel>
</rss>

