<?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: Default Current Week Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790841#M1044337</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;I'm not sure understand but I'll using a variable vCurrentWeek = Week(Today()), for example if I need my sales of actual week, I use next expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({${&amp;lt;Week={$(vCurrentWeek)}&amp;gt;}}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you don't use a variable try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({${&amp;lt;Week={$(#=Week(Today()))}&amp;gt;}}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you don´t have a week field try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date= {"&amp;gt;=$(=WeekStart(Today()))&amp;lt;=$(=Date(WeekEnd(Today())-2))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 18:22:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-20T18:22:14Z</dc:date>
    <item>
      <title>Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790839#M1044335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a project where I have to display current week data by default(i.e. 11/17/2014- 11/21/2014), I worked with Default Day and Month for which I used Month(Today(1) and Day(Today(1)) worked with no issues. But now I use Week(Today(1)) for week and end up with integer value of&amp;nbsp; current week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would&amp;nbsp; be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 17:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790839#M1044335</guid>
      <dc:creator />
      <dc:date>2014-11-20T17:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790840#M1044336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below:&lt;/P&gt;&lt;P&gt;=Date(Min({&amp;lt;Date={"=week(Date)=week(Today())"}&amp;gt;} Date)) &amp;amp; ' - ' &amp;amp; Date(Max({&amp;lt;Date={"=week(Date)=week(Today())"}&amp;gt;} Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still want to be able to click around in the Date field you can use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Min({&amp;lt;Date={"=week(Only({1} Date))=week(Today())"}&amp;gt;} Date)) &amp;amp; ' - ' &amp;amp; Date(Max({&amp;lt;Date={"=week(Only({1} Date))=week(Today())"}&amp;gt;} Date))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 18:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790840#M1044336</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-11-20T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790841#M1044337</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;I'm not sure understand but I'll using a variable vCurrentWeek = Week(Today()), for example if I need my sales of actual week, I use next expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({${&amp;lt;Week={$(vCurrentWeek)}&amp;gt;}}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you don't use a variable try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({${&amp;lt;Week={$(#=Week(Today()))}&amp;gt;}}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you don´t have a week field try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date= {"&amp;gt;=$(=WeekStart(Today()))&amp;lt;=$(=Date(WeekEnd(Today())-2))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 18:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790841#M1044337</guid>
      <dc:creator />
      <dc:date>2014-11-20T18:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790842#M1044338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Two Variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentWeekStart&lt;/P&gt;&lt;P&gt;=Date(WeekStart(Today()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentWeekEnd&lt;/P&gt;&lt;P&gt;=Date(WeekEnd(Today()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to Settings - Document Properites - Document Event Triggers - On Open Trigger&lt;/P&gt;&lt;P&gt;Add Actions&lt;/P&gt;&lt;P&gt;Add&lt;/P&gt;&lt;P&gt;Selection&amp;nbsp; -&amp;nbsp; Select in Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;='&amp;gt;='&amp;amp;vCurrentWeekStart &amp;amp;'&amp;lt;='&amp;amp;vCurrentWeekEnd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now whenever you open this document, by default the current week dates will get selected...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want SUM(Sales) for current week, use as below&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Date = {"&amp;gt;=$(=WeekStart(Today()))&amp;lt;=$(=WeekEnd(Today()))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope anyone from above would be the same you are looking for...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790842#M1044338</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-20T19:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790843#M1044339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do be aware that On Open Triggers do not work with the Ajax Client, only with the IE Plugin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790843#M1044339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790844#M1044340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use Manish's idea all the time and have yet to experience issues with triggers and Ajax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790844#M1044340</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2014-11-20T20:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790845#M1044341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works perfect,but i have 6 sheets and they should have default week view.&lt;/P&gt;&lt;P&gt;Does the on Open document trigger works for all sheets or do i have to use sheet triggers??&lt;/P&gt;&lt;P&gt;I prefer to use On Open document trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 02:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790845#M1044341</guid>
      <dc:creator />
      <dc:date>2014-11-21T02:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790846#M1044342</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Open document trigger is applied once when the document is opened, after that if you clear the selections it won't retain, if you want to retain in every sheet then you have to use Sheet Triggers.&amp;nbsp; This all depends on your requirement, if you just want when opening the document just use Document Trigger or if you want to retain every time when the sheet is loading then use Sheet Triggers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 03:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790846#M1044342</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-21T03:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Default Current Week Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790847#M1044343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 03:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Current-Week-Selection/m-p/790847#M1044343</guid>
      <dc:creator />
      <dc:date>2014-11-21T03:51:45Z</dc:date>
    </item>
  </channel>
</rss>

