<?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: Selecting current week and last week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522656#M748635</link>
    <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;P&gt;Current Week&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;VLN_Date = {"$(=Date(Max({1}VLN_Date), 'DD-MM-YYYY'))"}&amp;gt;}Description)&lt;/PRE&gt;&lt;P&gt;Previous Week&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;VLN_Date = {"$(=Date(Max({1}VLN_Date) - 7, 'DD-MM-YYYY'))"}&amp;gt;} Description)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 16:13:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-19T16:13:03Z</dc:date>
    <item>
      <title>Selecting current week and last week</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522654#M748634</link>
      <description>&lt;P&gt;VLN_Date is made up from the filename.&amp;nbsp; I have&lt;/P&gt;&lt;P&gt;12-11-2018&lt;/P&gt;&lt;P&gt;19-11-2018&lt;/P&gt;&lt;P&gt;26-11-2018&lt;/P&gt;&lt;P&gt;03-11-2018&lt;/P&gt;&lt;P&gt;10-12-2018&lt;/P&gt;&lt;P&gt;17-12-2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only ever want the last weeks so I need the 17th and the 10th in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count({&amp;lt;VLN_Date = {'$(=Max({1}VLN_Date))'}&amp;gt;}Description)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - THE CURRENT WEEK 17TH&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt; VLN_Date = {"$(=Date(Max({1}VLN_Date)-7, 'DD-MM-YYYY') "} &amp;gt;} Description)&amp;nbsp;&amp;nbsp;&amp;nbsp; - THE PREVIOUS WEEK 10TH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course this doesn't want to work for me.&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522654#M748634</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2024-11-16T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting current week and last week</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522656#M748635</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;P&gt;Current Week&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;VLN_Date = {"$(=Date(Max({1}VLN_Date), 'DD-MM-YYYY'))"}&amp;gt;}Description)&lt;/PRE&gt;&lt;P&gt;Previous Week&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;VLN_Date = {"$(=Date(Max({1}VLN_Date) - 7, 'DD-MM-YYYY'))"}&amp;gt;} Description)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522656#M748635</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-19T16:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting current week and last week</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522758#M748636</link>
      <description>Hi, how are you reading data from filename? maybe it's being loaded as a string , not a number (or date).&lt;BR /&gt;&lt;BR /&gt;In this case you can try setting the input format with date#():&lt;BR /&gt;Date#(Left(Filebasename(), 10), 'DD-MM-YYYY') as VLN_Date&lt;BR /&gt;&lt;BR /&gt;Change Left(Filebasename(), 10) with your current expression to extract date.</description>
      <pubDate>Wed, 19 Dec 2018 21:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522758#M748636</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-12-19T21:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting current week and last week</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522867#M748637</link>
      <description>Thanks Sunny.&lt;BR /&gt;Worked like a dream</description>
      <pubDate>Thu, 20 Dec 2018 08:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-current-week-and-last-week/m-p/1522867#M748637</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2018-12-20T08:35:17Z</dc:date>
    </item>
  </channel>
</rss>

