<?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 Need help on date calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-date-calculation/m-p/105808#M602676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE month IN (convert(varchar(8),dateadd(dd,7-datepart(dw,getdate())-5,getdate()),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-7,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-14,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-21,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-28,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-35,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-42,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-49,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-56,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-63,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-70,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-77,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I found the above query is used in stored procedure to calculate dates. how can i bring the same functionality in qlikview chart.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ex. In a list box there are 12 monday dates from recent monday are shown for user to select. if the user select any monday date, there is two more dates should shown in the chart. if user select first monday of this month the chart should show values of the selected monday values, then previous month first monday values and previous to previous month first monday values. similarly if they select anyother monday date the other two months monday should show the values. Please help me to achieve the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 12:12:48 GMT</pubDate>
    <dc:creator>vrb</dc:creator>
    <dc:date>2018-08-21T12:12:48Z</dc:date>
    <item>
      <title>Need help on date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-date-calculation/m-p/105808#M602676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE month IN (convert(varchar(8),dateadd(dd,7-datepart(dw,getdate())-5,getdate()),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-7,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-14,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-21,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-28,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-35,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-42,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-49,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-56,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-63,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-70,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,convert(varchar(8),dateadd(dd,-77,dateadd(dd,7-datepart(dw,getdate())-5,getdate())),112)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I found the above query is used in stored procedure to calculate dates. how can i bring the same functionality in qlikview chart.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ex. In a list box there are 12 monday dates from recent monday are shown for user to select. if the user select any monday date, there is two more dates should shown in the chart. if user select first monday of this month the chart should show values of the selected monday values, then previous month first monday values and previous to previous month first monday values. similarly if they select anyother monday date the other two months monday should show the values. Please help me to achieve the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 12:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-date-calculation/m-p/105808#M602676</guid>
      <dc:creator>vrb</dc:creator>
      <dc:date>2018-08-21T12:12:48Z</dc:date>
    </item>
  </channel>
</rss>

