<?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 triggers to select data in Alternate States in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925501#M320294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks right, not sure what isn't right. Can you share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 16:13:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-18T16:13:19Z</dc:date>
    <item>
      <title>Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925496#M320289</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;&lt;/P&gt;&lt;P&gt;This is my first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently trying to select a data from the default state.&lt;/P&gt;&lt;P&gt;Eg DepartureDate 30/12/2015 and with this date find out what the Last last year comparison date is.&lt;/P&gt;&lt;P&gt;These last year comparison dates are set by the business and look as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105798_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I have found the last last year comparison date in the default state I then want to use this date eg 30/12/2013 and use this for my departuredate in the alternate state I have called "alt" to fidn the sum(rev) for 30/12/2013. LLY_COM means l&lt;SPAN style="font-size: 13.3333px;"&gt;ast last year comparison date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105799_Capture2.PNG" style="height: 131px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this i have added the following triggers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/105803_Capture3.PNG" style="height: auto;" /&gt;&lt;IMG alt="Capture4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/105804_Capture4.PNG" style="height: auto;" /&gt;&lt;IMG alt="Capture5.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/105805_Capture5.PNG" style="height: 334px; width: 620px;" /&gt;&lt;IMG alt="Capture6.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/105806_Capture6.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The string search has the following expression&lt;/P&gt;&lt;P&gt;='=LLY_COM=Aggr(NODISTINCT Only(total {&amp;lt;DepartureDate=P($::LLY_COM)&amp;gt;} LLY_COM), DepartureDate)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture7.PNG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/105807_Capture7.PNG" style="height: 355px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that when I use the above trigger in the alternate state it doesn't select just one DepartureDate it selects them all...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture9.PNG" class="image-8 jive-image" src="https://community.qlik.com/legacyfs/online/105808_Capture9.PNG" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help, I think maybe the following expression is not the correct one:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ='=LLY_COM=Aggr(NODISTINCT Only(total {&amp;lt;DepartureDate=P($::LLY_COM)&amp;gt;} LLY_COM), DepartureDate)'&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;although this whole method worked for LY_COM so using the last year comparison date......just not for last last year.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 17:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925496#M320289</guid>
      <dc:creator />
      <dc:date>2015-11-17T17:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925497#M320290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using this may be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='(' &amp;amp; Concat({$} &lt;SPAN style="font-size: 13.3333px;"&gt;Chr(34) &amp;amp; &lt;/SPAN&gt;LLY_COM &amp;amp; Chr(34),&amp;nbsp; '|') &amp;amp; ')' &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 17:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925497#M320290</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-17T17:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925498#M320291</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;Thanks for replying.&lt;/P&gt;&lt;P&gt;I have placed that here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture11.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105930_Capture11.PNG" style="height: 331px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and tried it like this also but still not working....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture12.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105931_Capture12.PNG" style="height: 374px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture13.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/105932_Capture13.PNG" style="height: 346px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925498#M320291</guid>
      <dc:creator />
      <dc:date>2015-11-18T15:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925499#M320292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to add this -&amp;gt; &lt;STRONG style="color: #ff0000;"&gt;=LLY_COM&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='(' &amp;amp; Concat({$} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Chr(34) &amp;amp; &lt;/SPAN&gt;LLY_COM &amp;amp; Chr(34),&amp;nbsp; '|') &amp;amp; ')'&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;Just use this search string -&amp;gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='(' &amp;amp; Concat({$} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Chr(34) &amp;amp; &lt;/SPAN&gt;LLY_COM &amp;amp; Chr(34),&amp;nbsp; '|') &amp;amp; ')'&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925499#M320292</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-18T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925500#M320293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ye i did that but still not working, am I using the right state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture21.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105940_Capture21.PNG" style="height: 546px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture22.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105941_Capture22.PNG" style="height: 247px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925500#M320293</guid>
      <dc:creator />
      <dc:date>2015-11-18T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925501#M320294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks right, not sure what isn't right. Can you share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925501#M320294</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-18T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925502#M320295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I add a qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925502#M320295</guid>
      <dc:creator />
      <dc:date>2015-11-18T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using triggers to select data in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925503#M320296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105945_Capture.PNG" style="height: 113px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105946_Capture.PNG" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-triggers-to-select-data-in-Alternate-States/m-p/925503#M320296</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-18T16:51:46Z</dc:date>
    </item>
  </channel>
</rss>

