<?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/962570#M966978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping &lt;SPAN lang="en"&gt;PriceExpirationDate field in the table containing the field &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Revenue, example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_PriceExpDate:&lt;/P&gt;&lt;P&gt;Mapping&amp;nbsp; Load PrimaryKey,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&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; PriceExpirationDate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM TablePrice;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableWhitRevenue:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(not isnull(Revenue) and (Revenue)&amp;lt;&amp;gt;0,'Won',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( (IsNull(Revenue) and &lt;STRONG&gt;APPLYMAP('&lt;SPAN style="font-size: 13.3333px;"&gt;Map_PriceExpDate&lt;/SPAN&gt;',PrimaryKey)&lt;/STRONG&gt; &amp;lt; Today()),'Lost','Open')) as Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 18:02:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-29T18:02:13Z</dc:date>
    <item>
      <title>Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962562#M966970</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;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using this expression in Chart Dimension(Calculated Dimension) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff6600; font-size: 10pt;"&gt;If((not isnull(Revenue) and (Revenue)&amp;lt;&amp;gt;0),'Won',if( (IsNull(Revenue) and PriceExpirationDate &amp;lt; Today()),'Lost','Open'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have three fields: Revenue,Price Expiration Date and Status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the revenue has a value,irrespective of price expiration date the status will be 'won'&lt;/P&gt;&lt;P&gt;2)If the price expiration date has gone(in past) and there is no value in Revenue(Null or zero) , then the status will be 'lost'&lt;/P&gt;&lt;P&gt;3)If the price expiration date is in future and there is no value in Revenue, then the status will be 'Open'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression is not giving me the correct results. When I am selecting 'lost' it's also showing me the 'won' records.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="100369" alt="as.png" class="jive-image image-1" height="139" src="https://community.qlik.com/legacyfs/online/100369_as.png" style="height: 139.472px; width: 403px;" width="403" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am selecting 'won', It's giving me the records where there is no value in the 'Revenue'(Zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="100376" alt="as.png" class="jive-image image-2" height="152" src="https://community.qlik.com/legacyfs/online/100376_as.png" style="height: 152.445px; width: 382px;" width="382" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962562#M966970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T16:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962563#M966971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using the above expression? In the script? In the frontend? In the frontend at different places?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962563#M966971</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962564#M966972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the flag in script with same expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600; font-size: 10pt;"&gt;If((not isnull(Revenue) and (Revenue)&amp;lt;&amp;gt;0),'Won',if( (IsNull(Revenue) and PriceExpirationDate &amp;lt; Today()),'Lost','Open')) as Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600; font-size: 10pt;"&gt;Now use this field on front end&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962564#M966972</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-29T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962565#M966973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using it in the chart Dimension(Calculated Dimension)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962565#M966973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T16:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962566#M966974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Revenue and PriceExpirationDate are from two separate tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962566#M966974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962567#M966975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And where does the Status field and list box comes from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962567#M966975</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962568#M966976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would highly recommend that you upload a small sample, so that we can investigate your setting in detail. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962568#M966976</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962569#M966977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any relation between these 2 tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, join them so as to have both fields in the same table and then create the flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962569#M966977</guid>
      <dc:creator>sergiorey</dc:creator>
      <dc:date>2015-09-29T17:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962570#M966978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping &lt;SPAN lang="en"&gt;PriceExpirationDate field in the table containing the field &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Revenue, example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_PriceExpDate:&lt;/P&gt;&lt;P&gt;Mapping&amp;nbsp; Load PrimaryKey,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&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; PriceExpirationDate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM TablePrice;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableWhitRevenue:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(not isnull(Revenue) and (Revenue)&amp;lt;&amp;gt;0,'Won',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( (IsNull(Revenue) and &lt;STRONG&gt;APPLYMAP('&lt;SPAN style="font-size: 13.3333px;"&gt;Map_PriceExpDate&lt;/SPAN&gt;',PrimaryKey)&lt;/STRONG&gt; &amp;lt; Today()),'Lost','Open')) as Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 18:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Not-Working/m-p/962570#M966978</guid>
      <dc:creator />
      <dc:date>2015-09-29T18:02:13Z</dc:date>
    </item>
  </channel>
</rss>

