<?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: Expression not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666810#M1064740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly, your date field format is causing the issue. Try to share a qvw with sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 10:45:33 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-09-10T10:45:33Z</dc:date>
    <item>
      <title>Expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666806#M1064736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my condition is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Pol Expiry Date&amp;gt; SysDate&amp;nbsp;&amp;nbsp; Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.Premium = G.Premium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Pol Expiry Date - Pol start Date)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * (Pol Expiry Date - SysDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; E.Premium&amp;nbsp; = G.Premium&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I converted this expression as &lt;/P&gt;&lt;P&gt;=if((TP_POL_TO_Date)&amp;gt;Today(),(sum(G.Premium) /&lt;/P&gt;&lt;P&gt;((TP_POL_TO_Date)-(TP_POL_FM_Date)))* ((TP_POL_TO_Date)-Today()),sum(G.Premium))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my dates are in format DD-MM-YYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here , if condition is not working , its directly taking else condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may the issue can anyone pls help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kalyankrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666806#M1064736</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-09-10T10:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666807#M1064737</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;Try like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Date(TP_POL_TO_Date)&amp;gt;Date(Today(),'DD-MM-YYYY'),(sum(G.Premium) /&lt;/P&gt;&lt;P&gt;((TP_POL_TO_Date)-(TP_POL_FM_Date)))* (Date(TP_POL_TO_Date)-Date(Today(),'DD_MM_YYYY'),sum(G.Premium))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(num(TP_POL_TO_Date)&amp;gt;floor(Today()),(sum(G.Premium) /&lt;/P&gt;&lt;P&gt;((TP_POL_TO_Date)-(TP_POL_FM_Date)))* ((TP_POL_TO_Date)-Today()),sum(G.Premium))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666807#M1064737</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-10T10:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666808#M1064738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps your date field is being treated as text, use date#() to convert it to proper date and try like:&lt;/P&gt;&lt;P&gt;=if(&lt;STRONG&gt;Date#&lt;/STRONG&gt;(TP_POL_TO_Date,&lt;STRONG&gt;'DD-MM-YYYY'&lt;/STRONG&gt;)&amp;gt;Today(),(.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666808#M1064738</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-10T10:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666809#M1064739</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;&lt;/P&gt;&lt;P&gt;No change in this.&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;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666809#M1064739</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-09-10T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666810#M1064740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly, your date field format is causing the issue. Try to share a qvw with sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 10:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working/m-p/666810#M1064740</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-10T10:45:33Z</dc:date>
    </item>
  </channel>
</rss>

