<?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 Re: To show last 5 weeks data in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529012#M687481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In "activate sheet" trigger I have added the below expression for "select in field" trigger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 variables "From" &amp;amp; "To"&lt;/P&gt;&lt;P&gt;set From = num(Max(Date.Date))-35;&lt;/P&gt;&lt;P&gt;set To =&amp;nbsp; num(Max(Date.Date));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp; Date(&lt;STRONG&gt;From&lt;/STRONG&gt;, 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date(&lt;STRONG&gt;To&lt;/STRONG&gt;, 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date format need to be changed based on your date field format. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 06:02:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-07T06:02:40Z</dc:date>
    <item>
      <title>To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529005#M687473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to show the last 5 weeks data in a pivot table. Can anyone help me in achieving this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Leni Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 06:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529005#M687473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T06:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529006#M687474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please specify that you want data back from last five weeks or 35 days what is your week start day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 06:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529006#M687474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T06:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529007#M687476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;last 5 weeks means from today back 5 weeks. Like, Last week, last before week &amp;amp; so on for 5 weeks data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 06:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529007#M687476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529008#M687477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use requiredDate&amp;gt;= date&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-35,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; in dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you are not using requiredDate column in dimesion then use this criteria in expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;requiredDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(today()-35))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 07:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529008#M687477</guid>
      <dc:creator />
      <dc:date>2013-12-27T07:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529009#M687478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like sum({&amp;lt;MyDate = {'&amp;gt;$(=today()-35)'}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 07:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529009#M687478</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-27T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529010#M687479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use following expressiom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Since a week is fixed to 7 days, you can add them within a Date() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin: 10px 20px; padding-left: 10px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;PRE style="padding-left: 10px; font-style: inherit; font-family: monospace;"&gt;Date(Today() + (7 * vNumberOfWeeks), 'MMM-YYYY')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final Expression&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;sale_date={&amp;gt;=$(=date(num(max(sale_date))-35)) &amp;lt;=$(=date(max(sale_date)))}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 07:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529010#M687479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529011#M687480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this option but data is not displaying in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Week as one of the dimension and if I use the above expression will it show only 5 weeks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50850_1.jpg" style="width: 620px; height: 154px;" /&gt;&lt;/P&gt;&lt;P&gt;I need to export this chart to excel and send as attachment in mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whether we can restrict the chart to have latest 5 weeks data (as this chart is not visible to users and it is for only mail purposes) and trigger a mail on the scheduled time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 12:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529011#M687480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-31T12:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: To show last 5 weeks data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529012#M687481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In "activate sheet" trigger I have added the below expression for "select in field" trigger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 variables "From" &amp;amp; "To"&lt;/P&gt;&lt;P&gt;set From = num(Max(Date.Date))-35;&lt;/P&gt;&lt;P&gt;set To =&amp;nbsp; num(Max(Date.Date));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp; Date(&lt;STRONG&gt;From&lt;/STRONG&gt;, 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date(&lt;STRONG&gt;To&lt;/STRONG&gt;, 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date format need to be changed based on your date field format. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 06:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-show-last-5-weeks-data-in-pivot-table/m-p/529012#M687481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-07T06:02:40Z</dc:date>
    </item>
  </channel>
</rss>

