<?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: Syncing selection in two date fields using trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317709#M832409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Zach,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;May be like in attached file with use variable event trigger? Create variable with expression &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=GetFieldSelections(Date)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Next in the document properties set the trigger to change the variable (look attached file).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Andrey&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 13:11:52 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-06-20T13:11:52Z</dc:date>
    <item>
      <title>Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317708#M832408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, I have two date fields one simply called 'Date' and one called '[TS Date]'. The possible values in Date are the last days of the month for example, 1/31/2017, 2/28/2017, etc. The possible values of the field TS date are the 15th of every month and the last day of the month. What I want to accomplish is that when a date is selected in Date, the corresponding two dates are selected in TS Date. For example if 2/28/2017 is selected in Date, TS Date would have 2/15/2017 and 2/28/2017 selected. I am currently trying to go about this using a trigger on Date field selection. Below is my attempt at getting the trigger to work for just one month, May. I think if I can get that I can expand the solution to cover all of the months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action: Select in Field&lt;/P&gt;&lt;P&gt;Field: [TS Date]&lt;/P&gt;&lt;P&gt;Search String: &lt;SPAN style="font-size: 10pt;"&gt;If(SubstringCount(GetFieldSelections(Date), '5/31/2017') &amp;gt; 0, '5/15/2017' &amp;amp; '5/31/2017', 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance for the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Zach&lt;BR /&gt;&lt;/SPAN&gt;&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/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317708#M832408</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317709#M832409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Zach,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;May be like in attached file with use variable event trigger? Create variable with expression &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=GetFieldSelections(Date)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Next in the document properties set the trigger to change the variable (look attached file).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Andrey&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317709#M832409</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-06-20T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317710#M832410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Would you mind posting a screenshot or the text of the search string or pasting the text? I only have personal edition and cannot open the .qvw. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317710#M832410</guid>
      <dc:creator />
      <dc:date>2017-06-20T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317711#M832411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for not answering immediately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168101_1.jpg" style="height: 234px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168102_2.jpg" style="height: 318px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/168103_3.jpg" style="height: 366px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317711#M832411</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-06-26T13:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317712#M832412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;may be this&lt;/P&gt;&lt;P&gt;List Box Field Date&lt;/P&gt;&lt;P&gt;List Box Expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Only&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[TS Date]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"=Month([TS Date])=Max(Month(Date))"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[TS Date]&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[TS Date]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168104_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317712#M832412</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-26T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317713#M832413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;others above have replied as to how to set up a trigger to achieve this, however I'd suggest a slightly different approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you thought about modifying your data model to use a single date field and a master calendar? If you did so it would be a fairly simple matter to set up your charts to use set analysis to cover the time period you are interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317713#M832413</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-06-26T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317714#M832414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestion. That is something I will look into doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317714#M832414</guid>
      <dc:creator />
      <dc:date>2017-06-26T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317715#M832415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you I will get back to everyone with the results!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317715#M832415</guid>
      <dc:creator />
      <dc:date>2017-06-26T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing selection in two date fields using trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317716#M832416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I will let you know which option works out best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syncing-selection-in-two-date-fields-using-trigger/m-p/1317716#M832416</guid>
      <dc:creator />
      <dc:date>2017-06-26T14:00:33Z</dc:date>
    </item>
  </channel>
</rss>

