<?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 Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169012#M39971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been asked to create a list box with only five values in it to show: Last week, Last Month, Last Quarter, Last Year, and All Data. And those are the only selections they to be included in the list (I've already created a multi box, but this person wants a list of only these five often-visited selections).&lt;/P&gt;&lt;P&gt;How in the ham sandwich might I do that? I already have a fields for Week, Month, Quarter and Year.&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Aug 2010 19:16:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-19T19:16:09Z</dc:date>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169012#M39971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been asked to create a list box with only five values in it to show: Last week, Last Month, Last Quarter, Last Year, and All Data. And those are the only selections they to be included in the list (I've already created a multi box, but this person wants a list of only these five often-visited selections).&lt;/P&gt;&lt;P&gt;How in the ham sandwich might I do that? I already have a fields for Week, Month, Quarter and Year.&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 19:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169012#M39971</guid>
      <dc:creator />
      <dc:date>2010-08-19T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169013#M39972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a sugestion....&lt;/P&gt;&lt;P&gt;On your script....load last week,month,quarter,year and date...and put in a new table....and link this table im your model.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 19:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169013#M39972</guid>
      <dc:creator />
      <dc:date>2010-08-19T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169014#M39973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Download Rob Wunderlich's QlikView cookbook:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;A href="http://robwunderlich.com/Download.html"&gt;http://robwunderlich.com/Download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In it is an example called dategrouping.qvw. It does what you want by setting up date ranges and then interval matching the ranges back to your dates - basically exactly what Érico suggested if I understood the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 19:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169014#M39973</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-19T19:38:09Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169015#M39974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link, John. Unfortunately, I'm using the personal edition of Qlikview and am therefore unable to open the file from Rob's site. Could I trouble you for a screenshot to the relevant code?&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 21:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169015#M39974</guid>
      <dc:creator />
      <dc:date>2010-08-19T21:41:13Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169016#M39975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the script. To see it work, create a list box for Range and one for Date. Selections in Range affect what Dates are possible because of the connection between the two tables.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;/* This section just creates some test data */&lt;BR /&gt;data:&lt;BR /&gt;LET vEndDate = num(today(1)); // End at today's date&lt;BR /&gt;LET vStartDate = num(addmonths(today(1),-14)) -1; // Start at 14 months earlier than today&lt;BR /&gt;TestData:&lt;BR /&gt;LOAD date($(vStartDate) + IterNo()) as Date&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE $(vStartDate) + IterNo() &amp;lt;= $(vEndDate)&lt;BR /&gt;;&lt;BR /&gt;/* End of test data */&lt;BR /&gt;/* This script demonstrates assigning Dates to named groups, such as "Yesterday" or "Last Week".&lt;BR /&gt;Date table was created on the previous tab.&lt;BR /&gt;*/&lt;BR /&gt;// Assign current date to a variable. Makes INLINE below a little neater and ensures we don't cross midnight boundry.&lt;BR /&gt;LET vToday=today(1);&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Ranges:&lt;BR /&gt;// Use the "evaluate()" function to execute the input function text and convert it to actual date values.&lt;BR /&gt;LOAD Range, date(evaluate(RangeStart)) as RangeStart, date(evaluate(RangeEnd)) as RangeEnd&lt;BR /&gt;;&lt;BR /&gt;/* The INLINE data defines the Range Name, Starting date of the Range, and Ending date of the Range.&lt;BR /&gt;The Start/End values are defined using standard QV date functions.&lt;BR /&gt;Semicolon is used for a field delimeter because some of the functions contain commas.&lt;BR /&gt;*/&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Range; RangeStart; RangeEnd&lt;BR /&gt;Today; vToday; DayEnd(vToday)&lt;BR /&gt;Yesterday; vToday-1; DayEnd(vToday-1)&lt;BR /&gt;This Week; WeekStart(vToday); WeekEnd(vToday)&lt;BR /&gt;Last Week; WeekStart(vToday,-1); WeekEnd(vToday, -1)&lt;BR /&gt;Last 2 Weeks; WeekStart(today(1),-1); WeekEnd(today(1))&lt;BR /&gt;This Month; MonthStart(vToday); MonthEnd(vToday)&lt;BR /&gt;Last Month; MonthStart(vToday,-1); MonthEnd(vToday,-1)&lt;BR /&gt;Last Two Months; MonthStart(vToday,-1); MonthEnd(vToday)&lt;BR /&gt;This Year; YearStart(vToday); YearEnd(vToday)&lt;BR /&gt;Last Year; YearStart(vToday,-1); YearEnd(vToday,-1)&lt;BR /&gt;] (delimiter is ';')&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;/*&lt;BR /&gt;Use IntervalMatch to link the Date field into multiple Range fields.&lt;BR /&gt;Doing a JOIN avoids creating a messy synthetic key.&lt;BR /&gt;*/&lt;BR /&gt;JOIN (Ranges) IntervalMatch (Date) LOAD RangeStart, RangeEnd RESIDENT Ranges;&lt;BR /&gt;// Because we did a JOIN, we may drop the the Start/End fields.&lt;BR /&gt;DROP FIELDS RangeStart, RangeEnd;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 21:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169016#M39975</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-19T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169017#M39976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for sharing this script, John. It worked like a charm!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169017#M39976</guid>
      <dc:creator />
      <dc:date>2010-08-20T23:57:49Z</dc:date>
    </item>
    <item>
      <title>Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169018#M39977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to load the Range list box, but none of my charts update when i make a selection from it. I dont have any set analysis in my expressions that would prevent this. Any ideas/suggestions on how to fix it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 21:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169018#M39977</guid>
      <dc:creator />
      <dc:date>2010-12-08T21:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169019#M39978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this same example of date grouping, there is a way to group last FRI-SAT-SUN ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Camilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 15:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169019#M39978</guid>
      <dc:creator>camilo</dc:creator>
      <dc:date>2011-08-19T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169020#M39979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the logic which u have provided in the script and it is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want minor customisation in it for Last 2 Months,Last 2 weeks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In This suppose my calender is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last 2 months it should show me data for 2013 Jan and Feb months only.It should not include March&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for Last 2 weeks it shold show me data from 10th Mar 2013 to 24mar 2013&amp;nbsp; and it should not include current week.25Mar to 28mar 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for Last 2 quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i require this help desperately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 06:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169020#M39979</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2013-03-27T06:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom List Box with only Last Week, Last Month, Last Quarter, Last Year, and All Data</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169021#M39980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original code shared by John/Rob Below is the script. To see it work, create a list box for Range and one for Date. Selections in Range affect what Dates are possible because of the connection between the two tables. /* This section just creates some test data */ data: LET vEndDate = num(today(1)); // End at today's date LET vStartDate = num(addmonths(today(1),-14)) -1; // Start at 14 months earlier than today TestData: LOAD date($(vStartDate) + IterNo()) as Date AUTOGENERATE 1 WHILE $(vStartDate) + IterNo() &amp;lt;= $(vEndDate) ; /* End of test data */ /* This script demonstrates assigning Dates to named groups, such as "Yesterday" or "Last Week". Date table was created on the previous tab. */ // Assign current date to a variable. Makes INLINE below a little neater and ensures we don't cross midnight boundry. LET vToday=today(1); Ranges: // Use the "evaluate()" function to execute the input function text and convert it to actual date values. LOAD Range, date(evaluate(RangeStart)) as RangeStart, date(evaluate(RangeEnd)) as RangeEnd ; /* The INLINE data defines the Range Name, Starting date of the Range, and Ending date of the Range. The Start/End values are defined using standard QV date functions. Semicolon is used for a field delimeter because some of the functions contain commas. */ LOAD * INLINE [ Range; RangeStart; RangeEnd Today; vToday; DayEnd(vToday) Yesterday; vToday-1; DayEnd(vToday-1) This Week; WeekStart(vToday); WeekEnd(vToday) Last Week; WeekStart(vToday,-1); WeekEnd(vToday, -1) Last 2 Weeks; WeekStart(today(1),-1); WeekEnd(today(1)) This Month; MonthStart(vToday); MonthEnd(vToday) Last Month; MonthStart(vToday,-1); MonthEnd(vToday,-1) Last Two Months; MonthStart(vToday,-1); MonthEnd(vToday) This Year; YearStart(vToday); YearEnd(vToday) Last Year; YearStart(vToday,-1); YearEnd(vToday,-1) ] (delimiter is ';') ; /* Use IntervalMatch to link the Date field into multiple Range fields. Doing a JOIN avoids creating a messy synthetic key. */ JOIN (Ranges) IntervalMatch (Date) LOAD RangeStart, RangeEnd RESIDENT Ranges; // Because we did a JOIN, we may drop the the Start/End fields. DROP FIELDS RangeStart, RangeEnd; Hi John, I used the logic which u have provided in the script and it is working fine I want minor customisation in it for Last 2 Months,Last 2 weeks In This suppose my calender is Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar Customisation Requiredin above code to meet the below requirements: Last 2 months it should show me data for 2013 Jan and Feb months only.It should not include March Similarly for Last 2 weeks it shold show me data from 10th Mar 2013 to 24mar 2013&amp;nbsp; and it should not include current week.25Mar to 28mar 2013 Similarly for Last 2 quarters. i require this help desperately Could you please help me on this Regards Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 06:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-List-Box-with-only-Last-Week-Last-Month-Last-Quarter-Last/m-p/169021#M39980</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2013-03-27T06:09:57Z</dc:date>
    </item>
  </channel>
</rss>

