<?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: Using a button to create a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/263#M792647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There you go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2018 19:49:26 GMT</pubDate>
    <dc:creator>nicalbert</dc:creator>
    <dc:date>2018-01-18T19:49:26Z</dc:date>
    <item>
      <title>Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/255#M792639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I there a way to select dates using a button? I need to add a button that dynamically selects the last 7 days based on the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following, without any luck:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a button with "&lt;STRONG&gt;Select in field&lt;/STRONG&gt;" as Action&lt;/LI&gt;&lt;LI&gt;Identified the date field (in this case &lt;EM&gt;ItemCreatedDate&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Used the following search string:&amp;nbsp; &lt;STRONG&gt;='&amp;gt;=' &amp;amp; Date(Today()-7) &amp;amp; '&amp;lt;=' &amp;amp; Date(Today())&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Just tried it... I'm not sure about that one!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the format of &lt;EM style="font-size: 13.3333px;"&gt;ItemCreatedDate &lt;/EM&gt;can influence the result? In this case, the format is "YYYY-MM-DD hh:mm:ss".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me on that one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/255#M792639</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/256#M792640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it may not work because of the format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today() is a date and Date(today()) is a date also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your field ItemCreatedDate is a TIMESTAMP, you should interpret this field and format it as a date before, you can create a derived field in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Date#(ItemCreatedDate , 'the format you have on the DateFormat variable ')) as new_field_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;! on the button, when you identiy the Date field, make you to not put = sign !&lt;/EM&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 23:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/256#M792640</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-01-12T23:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/257#M792641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this? Or please post application to test, If dates are real date format then this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='&amp;gt;=' &amp;amp; Date(Max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ItemCreatedDate&lt;/STRONG&gt;-7), 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date(Today(), 'YYYY-MM-DD')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 01:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/257#M792641</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-13T01:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/258#M792642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use interpreter to change the format of your Item CreatedDate&lt;/P&gt;&lt;P&gt;May be this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date((&lt;SPAN style="font-size: 13.3333px;"&gt;ItemCreatedDate&lt;/SPAN&gt;-7),&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;'YYYY-MM-DD')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 09:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/258#M792642</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-13T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/259#M792643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I beleive the format influence the result.. As a test you can try the very same search string in the search box for a List Box object containing the field you wish to search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you can (and perhaps should?) remove the time part from your ItemCreatedDate if only the date part is relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else try the following script in an empty app to examine some options for creating a timestamp for your button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(Today()-7) as Today,&lt;/P&gt;&lt;P&gt;timestamp(Now()-7) as Now,&lt;/P&gt;&lt;P&gt;timestamp(Date(Today()-7) &amp;amp; ' 00:00:00') as Timestamp,&lt;/P&gt;&lt;P&gt;Date(Today()-7) &amp;amp; ' 00:00:00' as Text&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 10:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/259#M792643</guid>
      <dc:creator>kjhertz</dc:creator>
      <dc:date>2018-01-13T10:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/260#M792644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be to use the expression search syntax, thus avoiding date format issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_287710_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189999_QlikCommunity_Thread_287710_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_287710_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/190000_QlikCommunity_Thread_287710_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;='=Date&amp;gt;Today()-7 and Date&amp;lt;=Today()'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4096"&gt;The Search String&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4107"&gt;The Expression Search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 22:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/260#M792644</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-01-13T22:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/261#M792645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Marco,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the example you have provided is exactly what I need to to! But for some reason, it does not work with my actual data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 18:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/261#M792645</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2018-01-18T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/262#M792646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post a sample of your data to test with?&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;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 19:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/262#M792646</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-01-18T19:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/263#M792647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There you go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 19:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/263#M792647</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2018-01-18T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/264#M792648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When changing the date field name, the search string has to be changed accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_287710_Pic3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190561_QlikCommunity_Thread_287710_Pic3.JPG" style="height: 282px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use a search string like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_287710_Pic4.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/190574_QlikCommunity_Thread_287710_Pic4.JPG" style="height: 256px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 20:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/264#M792648</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-01-18T20:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/265#M792649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES!!!!!!!!!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so very much for your help and time Marco. It is really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 20:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/265#M792649</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2018-01-18T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a button to create a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/266#M792650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome,&lt;/P&gt;&lt;P&gt;glad it helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 20:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-button-to-create-a-selection/m-p/266#M792650</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-01-18T20:34:49Z</dc:date>
    </item>
  </channel>
</rss>

