<?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 Date Range Category in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509941#M750329</link>
    <description>&lt;P&gt;I have a date field &lt;STRONG&gt;DateA&lt;/STRONG&gt; with dates in the format 11/10/2018 12:00:00 AM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create Date Range Bucket in the script showing&lt;/P&gt;&lt;P&gt;Today, Recent Date (Maximum Date from the DateA), Last week, Last Month, Last Year.&lt;/P&gt;&lt;P&gt;How do I create this bucket? FYI, the DateA field may or may not have current date, meaning it may or may not contain today's date. In that case, the Maximum Date in the filed becomes my Recent Date.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:51:27 GMT</pubDate>
    <dc:creator>qlikwiz123</dc:creator>
    <dc:date>2024-11-16T21:51:27Z</dc:date>
    <item>
      <title>Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509941#M750329</link>
      <description>&lt;P&gt;I have a date field &lt;STRONG&gt;DateA&lt;/STRONG&gt; with dates in the format 11/10/2018 12:00:00 AM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create Date Range Bucket in the script showing&lt;/P&gt;&lt;P&gt;Today, Recent Date (Maximum Date from the DateA), Last week, Last Month, Last Year.&lt;/P&gt;&lt;P&gt;How do I create this bucket? FYI, the DateA field may or may not have current date, meaning it may or may not contain today's date. In that case, the Maximum Date in the filed becomes my Recent Date.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509941#M750329</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-16T21:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509942#M750330</link>
      <description>&lt;P&gt;you can create flags. using something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;temp:
LOAD 
     Date(max(Date)) as MaxDate
FROM
Dummy.xlsx
(ooxml, embedded labels, table is Sheet1);

Let vSetDate=Date(Floor(FileTime('Dummy.xlsx')));
dummy:
load 	
		if(Date=today(),'Y','N') as TodayFlag
		,if(Date=Date(Peek('MaxDate',0,'temp')),'Y','N') as MaxDateFlag
		,if( (Week(today())-Week(Date))=1
			,'Y'
			,'N') as LastWeekFlag
		, if( (Month(today())-Month(Date))=1
			,'Y'
			,'N') as LastMonthFlag
	,*;
LOAD 
	Test, 
     Date,
     null() as DummyField
FROM
Dummy.xlsx
(ooxml, embedded labels, table is Sheet1)&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509942#M750330</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T17:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509952#M750332</link>
      <description>&lt;P&gt;Max function in Script throws an error. Says 'Invalid Expression'&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509952#M750332</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2018-11-20T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509953#M750333</link>
      <description>Share your script please</description>
      <pubDate>Tue, 20 Nov 2018 17:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509953#M750333</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T17:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509954#M750334</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry but due to the security of the data, I cannot post the script here. But I tried using a simple excel and Date(Max(Date) )always throws Invalid Expression Error.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509954#M750334</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2018-11-20T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509956#M750335</link>
      <description>Share the one giving the error i.e. the excel one.&lt;BR /&gt;most likely check the date field name</description>
      <pubDate>Tue, 20 Nov 2018 17:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509956#M750335</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T17:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509979#M750336</link>
      <description>&lt;P&gt;PFA&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 18:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509979#M750336</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2018-11-20T18:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Category</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509982#M750337</link>
      <description>You should not use id in max load. see below&lt;BR /&gt;Load&lt;BR /&gt;//ID, remove this&lt;BR /&gt;Date(max(Date)) as MaxDate&lt;BR /&gt;Resident Data;</description>
      <pubDate>Tue, 20 Nov 2018 19:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Category/m-p/1509982#M750337</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T19:00:41Z</dc:date>
    </item>
  </channel>
</rss>

