<?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: Multiple week selection on opening a QlikView report in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18467#M511069</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;Yes, it's for date.&lt;/P&gt;&lt;P&gt;Sorry -&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;I should have read the question properly!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'd still have similar logic for week field though (untested):&lt;/P&gt;&lt;P&gt;='&amp;gt;='&amp;amp;Week(max(WhateverYourWeekFieldIs)-1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if your wanting to retrieve records between two dates/week you could have (untested):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;='&amp;gt;='&amp;amp;Week(max(WhateverYourWeekFieldIs)-10)&amp;nbsp; &amp;amp; '&amp;lt;='&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Week(max(WhateverYourWeekFieldIs)-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, it's probably easier for me since the date fields I need are already created as part of the load so I only need to use the "Date" field to manipulate them.&amp;nbsp; (Eg&amp;nbsp; Load *, date(Floor(StartDate)) as Date,Week(StartDate) as StartWeek, WeekName(StartDate) as StartWeekYear from Table1 etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the above helps or hinders!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 08:48:04 GMT</pubDate>
    <dc:creator>developer90210</dc:creator>
    <dc:date>2018-06-13T08:48:04Z</dc:date>
    <item>
      <title>Multiple week selection on opening a QlikView report</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18464#M511066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set up a trigger which selects weeks until previous week (i.e., current week -1) by default when a user opens the report. Can anyone help me with the expression for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following, but it isn't working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='("' &amp;amp; Concat(Weeks-1, '"|"') &amp;amp; '")'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 04:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18464#M511066</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-06-13T04:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple week selection on opening a QlikView report</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18465#M511067</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;Not quite sure if this is what your after but have you tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;='&amp;amp; date((max(WhateverYourDateFieldIs)-6),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 05:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18465#M511067</guid>
      <dc:creator>developer90210</dc:creator>
      <dc:date>2018-06-13T05:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple week selection on opening a QlikView report</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18466#M511068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need multiple selections to be made in field, "Week" and not date. Looks like the expression you have provided is for Date field right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 05:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18466#M511068</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-06-13T05:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple week selection on opening a QlikView report</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18467#M511069</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;Yes, it's for date.&lt;/P&gt;&lt;P&gt;Sorry -&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;I should have read the question properly!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'd still have similar logic for week field though (untested):&lt;/P&gt;&lt;P&gt;='&amp;gt;='&amp;amp;Week(max(WhateverYourWeekFieldIs)-1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if your wanting to retrieve records between two dates/week you could have (untested):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;='&amp;gt;='&amp;amp;Week(max(WhateverYourWeekFieldIs)-10)&amp;nbsp; &amp;amp; '&amp;lt;='&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Week(max(WhateverYourWeekFieldIs)-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, it's probably easier for me since the date fields I need are already created as part of the load so I only need to use the "Date" field to manipulate them.&amp;nbsp; (Eg&amp;nbsp; Load *, date(Floor(StartDate)) as Date,Week(StartDate) as StartWeek, WeekName(StartDate) as StartWeekYear from Table1 etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the above helps or hinders!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 08:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18467#M511069</guid>
      <dc:creator>developer90210</dc:creator>
      <dc:date>2018-06-13T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple week selection on opening a QlikView report</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18468#M511070</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;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the expressions didn't work for me. I would want all the weeks (week 1 to current week -1) to be selected by default when I open the report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;='&amp;amp;Week(max(WhateverYourWeekFieldIs)-1), output of this expression was 4. Not sure how!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Do you have any other suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-week-selection-on-opening-a-QlikView-report/m-p/18468#M511070</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-06-13T09:02:01Z</dc:date>
    </item>
  </channel>
</rss>

