<?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 Where condition for Previous Quarter data dynamically while extracting from SQL Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1649592#M730577</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to write condition&amp;nbsp;at SQL Query to extract only Previous Quarter data (Dynamically) from SQL Server to QlikView.&lt;/P&gt;&lt;P&gt;Date filed format '201911'&lt;/P&gt;&lt;P&gt;Thanks, Nihhal.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>nihhalmca</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Where condition for Previous Quarter data dynamically while extracting from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1649592#M730577</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to write condition&amp;nbsp;at SQL Query to extract only Previous Quarter data (Dynamically) from SQL Server to QlikView.&lt;/P&gt;&lt;P&gt;Date filed format '201911'&lt;/P&gt;&lt;P&gt;Thanks, Nihhal.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1649592#M730577</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition for Previous Quarter data dynamically while extracting from DB</title>
      <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1649737#M730578</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try if it helps....!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM&lt;BR /&gt;table_name&lt;BR /&gt;WHERE&lt;BR /&gt;TO_DATE( your_date_field, 'YYYYMM' )&lt;/P&gt;&lt;P&gt;BETWEEN trunc(add_months(SYSDATE,-3),'Q') AND trunc(add_months(SYSDATE,0),'Q') - ( 1 / ( 24 * 60 * 60 ) )&lt;/P&gt;&lt;P&gt;(Oracle SQl Syntax, change function syntax if you are on MS SQL Server)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 16:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1649737#M730578</guid>
      <dc:creator>QlikJunkie</dc:creator>
      <dc:date>2019-11-21T16:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition for Previous Quarter data dynamically while extracting from DB</title>
      <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1650037#M730579</link>
      <description>&lt;P&gt;Thanks for response, can you share SQL Server syntax if you have idea actually i am new to it.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 11:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1650037#M730579</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2019-11-22T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition for Previous Quarter data dynamically while extracting from DB</title>
      <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1650172#M730580</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL Server...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM&lt;BR /&gt;"table_name"&lt;BR /&gt;WHERE&lt;BR /&gt;CONVERT(DATETIME, "your_date_field", 'YYYYMM' )&lt;BR /&gt;BETWEEN trunc(dateadd(month, -3, GETDATE()),'Q') AND trunc(dateadd(month, 0, GETDATE()),'Q') - ( 1 / ( 24 * 60 * 60 ) )&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 14:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1650172#M730580</guid>
      <dc:creator>QlikJunkie</dc:creator>
      <dc:date>2019-11-22T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition for Previous Quarter data dynamically while extracting from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1654371#M730581</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Nihhal, did the last post get you what you needed?&amp;nbsp; If so, do not forget to come back to the thread and use the Accept as Solution button on the post to mark it and give credit to the poster as well as let the other Community Members know that it did work.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is something else though that you may want to consider:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That might be another way to do things.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 22:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-condition-for-Previous-Quarter-data-dynamically-while/m-p/1654371#M730581</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-04T22:52:54Z</dc:date>
    </item>
  </channel>
</rss>

