<?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: Macro for selecting data range is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599314#M684206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;dathu is correct; a button and Select in Field will work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Always&lt;/STRONG&gt;&lt;/SPAN&gt; format your dates, in qlikview.&lt;/P&gt;&lt;P&gt;Field name: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Rpt Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;value field: = max(date([Rpt Date],'MM/DD/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 20:04:17 GMT</pubDate>
    <dc:creator>james_wynn</dc:creator>
    <dc:date>2015-02-10T20:04:17Z</dc:date>
    <item>
      <title>Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599309#M684201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the following issue:&lt;/P&gt;&lt;P&gt;Im trying to select only the last 30 days in a Macro Sub.&lt;/P&gt;&lt;P&gt;I 2 Have qlikview Variables: &lt;/P&gt;&lt;P&gt;1. "vMaxDate" gets the max date we have in the system&lt;/P&gt;&lt;P&gt;2. "vMinDay30" gets the max date -30.&lt;/P&gt;&lt;P&gt;So I would like to select everything in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my Sub is: &lt;/P&gt;&lt;P&gt;sub select30days&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll false&lt;/P&gt;&lt;P&gt;First= ActiveDocument.Variables("vMinDay30").GetContent.String&lt;/P&gt;&lt;P&gt;Last= ActiveDocument.Variables("vMaxDate").GetContent.String&lt;/P&gt;&lt;P&gt;mySelect= "&amp;gt;" &amp;amp; First &amp;amp; "&amp;lt;" &amp;amp; Last&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("DateOnly").Select mySelect&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but even after I test it, it does not select a thing.&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599309#M684201</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599310#M684202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please can you share your qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replicated with an own example and the macro works fine. &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;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 17:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599310#M684202</guid>
      <dc:creator />
      <dc:date>2014-02-18T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599311#M684203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. Check that the date format is correct. You can add some msgbox statements to check the values of the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway.... why use a macro at all? The &lt;EM&gt;Clear All&lt;/EM&gt; and &lt;EM&gt;Select in Field&lt;/EM&gt; actions work just as well and will also work work correctly in the ajax client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 17:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599311#M684203</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-18T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599312#M684204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you don't need a Macro for this requirement. Just create a Button or text object and create Action with "&lt;STRONG&gt;Select in Field&lt;/STRONG&gt;" option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: Date Expression:&amp;nbsp; ='&amp;gt;=$(=Max(Date)-30)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599312#M684204</guid>
      <dc:creator />
      <dc:date>2014-02-18T20:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599313#M684205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dathu.gv ... I created a button and pasted in exactly what you recommended and it does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select in Field&lt;/P&gt;&lt;P&gt;Field: Date (yes my system has a "Date" field)&lt;/P&gt;&lt;P&gt;Search String: ='&amp;gt;=$(=Max(Date)-30)' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 23:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599313#M684205</guid>
      <dc:creator />
      <dc:date>2014-03-05T23:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for selecting data range is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599314#M684206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;dathu is correct; a button and Select in Field will work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Always&lt;/STRONG&gt;&lt;/SPAN&gt; format your dates, in qlikview.&lt;/P&gt;&lt;P&gt;Field name: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Rpt Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;value field: = max(date([Rpt Date],'MM/DD/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 20:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-selecting-data-range-is-not-working/m-p/599314#M684206</guid>
      <dc:creator>james_wynn</dc:creator>
      <dc:date>2015-02-10T20:04:17Z</dc:date>
    </item>
  </channel>
</rss>

