<?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 Trigger with multiple field expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-with-multiple-field-expression/m-p/727935#M260868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a feature in my Qlikview application where a user can search for eligible movies based on a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an object called Movie, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movie&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;MovieId&lt;/P&gt;&lt;P&gt;MovieName&lt;/P&gt;&lt;P&gt;WindowStart (MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;WindowEnd (MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QlikView application, I want a user to be able to select a date range, and if at least one day within a movie's time window falls within that date range, it should show up as an eligible result. Right now, I have two calendar objects, Start Date and End Date. Both of them are selecting variables named vStartDate and vEndDate, respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add a trigger action when either variable changes. I need the expression to look like this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All movies within:&lt;/P&gt;&lt;P&gt;vStartDate&amp;lt;= MovieEnd &amp;lt;= vEndDate OR&lt;/P&gt;&lt;P&gt;vStartDate&amp;lt;= MovieBegin &amp;lt;= vEndDate OR&lt;/P&gt;&lt;P&gt;(MovieBegin &amp;lt;= vStartDate AND MovieEnd &amp;gt;= vEndDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's that third scenario that has me stumped. I don't know how to add multiple fields and then have the expression use both fields in the trigger action. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 17:40:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-06T17:40:52Z</dc:date>
    <item>
      <title>Trigger with multiple field expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-with-multiple-field-expression/m-p/727935#M260868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a feature in my Qlikview application where a user can search for eligible movies based on a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an object called Movie, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movie&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;MovieId&lt;/P&gt;&lt;P&gt;MovieName&lt;/P&gt;&lt;P&gt;WindowStart (MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;WindowEnd (MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QlikView application, I want a user to be able to select a date range, and if at least one day within a movie's time window falls within that date range, it should show up as an eligible result. Right now, I have two calendar objects, Start Date and End Date. Both of them are selecting variables named vStartDate and vEndDate, respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add a trigger action when either variable changes. I need the expression to look like this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All movies within:&lt;/P&gt;&lt;P&gt;vStartDate&amp;lt;= MovieEnd &amp;lt;= vEndDate OR&lt;/P&gt;&lt;P&gt;vStartDate&amp;lt;= MovieBegin &amp;lt;= vEndDate OR&lt;/P&gt;&lt;P&gt;(MovieBegin &amp;lt;= vStartDate AND MovieEnd &amp;gt;= vEndDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's that third scenario that has me stumped. I don't know how to add multiple fields and then have the expression use both fields in the trigger action. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-with-multiple-field-expression/m-p/727935#M260868</guid>
      <dc:creator />
      <dc:date>2014-08-06T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger with multiple field expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-with-multiple-field-expression/m-p/727936#M260869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem and I resolved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generate a Calendar with limits ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FEC_LIM:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min("DEBUT_CHANTIER") as FechaMin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max("FIN_CHANTIER") as FechaMax&lt;/P&gt;&lt;P&gt;resident TAR; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMin=num(Peek('FechaMin',0,'FEC_LIM'));&lt;/P&gt;&lt;P&gt;LET vMax=num(Peek('FechaMax',0,'FEC_LIM'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAL:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(IterNo()+$(vMin)-1)&amp;nbsp;&amp;nbsp; as CFecha,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Date(IterNo()+$(vMin)-1)) as CAño,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date(IterNo()+$(vMin)-1))&amp;nbsp; as CMes,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(Date(IterNo()+$(vMin)-1))&amp;nbsp;&amp;nbsp; as CSemana,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekStart(Date(IterNo()+$(vMin)-1)) as CSemIni,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekEnd(Date(IterNo()+$(vMin)-1)) as CSemFin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoGenerate 1 While IterNo()+$(vMin)-1&amp;lt;=$(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans select the dates ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 18:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-with-multiple-field-expression/m-p/727936#M260869</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-06T18:31:32Z</dc:date>
    </item>
  </channel>
</rss>

