<?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 Select last 31 days with action button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503114#M187968</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;I thought this would be easy but I can't get it to work:&lt;/P&gt;&lt;P&gt;I have the variable 'Startdate' and with one click on an action button i want to select only the dates within the last 31 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the action select in field with field 'Startdate' and value: =if(Startdate&amp;gt;=today()-31, '*')&lt;/P&gt;&lt;P&gt;but this does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other way i can think of is creating a new field in the script 'Lastmonth' with 1 for each 'Startdate' within the last month. But i rather not add another variable to an already large dataset and application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to do this without a extra field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 14:18:25 GMT</pubDate>
    <dc:creator>pepe2209</dc:creator>
    <dc:date>2014-01-13T14:18:25Z</dc:date>
    <item>
      <title>Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503114#M187968</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;I thought this would be easy but I can't get it to work:&lt;/P&gt;&lt;P&gt;I have the variable 'Startdate' and with one click on an action button i want to select only the dates within the last 31 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the action select in field with field 'Startdate' and value: =if(Startdate&amp;gt;=today()-31, '*')&lt;/P&gt;&lt;P&gt;but this does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other way i can think of is creating a new field in the script 'Lastmonth' with 1 for each 'Startdate' within the last month. But i rather not add another variable to an already large dataset and application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to do this without a extra field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503114#M187968</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2014-01-13T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503115#M187969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select in Field: Startdate with the expression:&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp; date(today()-31) &amp;amp; '&amp;lt;=' &amp;amp; today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503115#M187969</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-13T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503116#M187970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;Do you need the last 31 days prior to the selected date, or, do you need the current month or do you need the previous month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503116#M187970</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-01-13T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503117#M187971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Nicole Thanks this works! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503117#M187971</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2014-01-13T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503118#M187972</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;I actually want both, the last 31 days prior to today, and the previous month. The first one is already fixed thanks to Nicole. Now I'm trying to figure out the second one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503118#M187972</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2014-01-13T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select last 31 days with action button</title>
      <link>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503119#M187973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok now I use&amp;nbsp; this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp; MonthStart(today(),-1) &amp;amp; '&amp;lt;=' &amp;amp; MonthEnd(today(),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for selecting all dates in the previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 14:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-last-31-days-with-action-button/m-p/503119#M187973</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2014-01-13T14:48:04Z</dc:date>
    </item>
  </channel>
</rss>

