<?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 Expression not working when selecting variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working-when-selecting-variables/m-p/993839#M974578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set vPhase =&lt;/P&gt;&lt;P&gt; 'Design (Plan)',&lt;/P&gt;&lt;P&gt; 'Strategy (Assement)',&lt;/P&gt;&lt;P&gt; 'Transition (Build Deploy)',&lt;/P&gt;&lt;P&gt; 'Operation (Pending Closure)',&lt;/P&gt;&lt;P&gt; 'On Hold';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write it in script of qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the vPhase value in my expression :&lt;/P&gt;&lt;P&gt;eg,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Max({&amp;lt;Type = {MME},Phases = {$(vPhase)}&amp;gt;}Date([Exp End Date])))-Date(Min({&amp;lt;Type ={MME},Phases = {$(vPhase)}&amp;gt;}Date([Start Date])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But vPhase is picking null when there is selection in the phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98261_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/98262_Capture.PNG" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output required.&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/98263_Capture.PNG" style="height: 175px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 09:38:37 GMT</pubDate>
    <dc:creator>suvechha_b</dc:creator>
    <dc:date>2015-09-08T09:38:37Z</dc:date>
    <item>
      <title>Expression not working when selecting variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-when-selecting-variables/m-p/993839#M974578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set vPhase =&lt;/P&gt;&lt;P&gt; 'Design (Plan)',&lt;/P&gt;&lt;P&gt; 'Strategy (Assement)',&lt;/P&gt;&lt;P&gt; 'Transition (Build Deploy)',&lt;/P&gt;&lt;P&gt; 'Operation (Pending Closure)',&lt;/P&gt;&lt;P&gt; 'On Hold';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write it in script of qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the vPhase value in my expression :&lt;/P&gt;&lt;P&gt;eg,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Max({&amp;lt;Type = {MME},Phases = {$(vPhase)}&amp;gt;}Date([Exp End Date])))-Date(Min({&amp;lt;Type ={MME},Phases = {$(vPhase)}&amp;gt;}Date([Start Date])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But vPhase is picking null when there is selection in the phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98261_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/98262_Capture.PNG" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output required.&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/98263_Capture.PNG" style="height: 175px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 09:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-when-selecting-variables/m-p/993839#M974578</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2015-09-08T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working when selecting variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-when-selecting-variables/m-p/993840#M974579</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;use =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Max({&amp;lt;Type = {MME},Phases = {'$(=vPhase)'}&amp;gt;}Date([Exp End Date])))-Date(Min({&amp;lt;Type ={MME},Phases = {'$(=vPhase)'}&amp;gt;}Date([Start Date])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 09:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-when-selecting-variables/m-p/993840#M974579</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-09-08T09:44:11Z</dc:date>
    </item>
  </channel>
</rss>

