<?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: Chart Expressions- if then else/ nested Ifs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705710#M673033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if((year(enquiry_award_loss_date)=YR and month(enquiry_award_loss_date)=Mth and (TeamStatus = 'Active') and (opheadm.status&amp;lt;9)and (Whiteboardexclusion&amp;lt;&amp;gt;'1'), if((opdetm.spare)&amp;gt;'0',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Wildmatch(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;opheadm.Order_No,'CN?'), -1*&lt;/SPAN&gt;&amp;nbsp; opdetm.val/opdetm.spare, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;opdetm.val/opdetm.spare&lt;/SPAN&gt;),&amp;nbsp; opdetm.val)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 15:37:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-19T15:37:07Z</dc:date>
    <item>
      <title>Chart Expressions- if then else/ nested Ifs</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705709#M673032</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;Am using the following script in an expression which is returning values as based on the conditions:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if((year(enquiry_award_loss_date)=YR and month(enquiry_award_loss_date)=Mth and (TeamStatus = 'Active') and (opheadm.status&amp;lt;9)and (Whiteboardexclusion&amp;lt;&amp;gt;'1'), if((opdetm.spare)&amp;gt;'0',opdetm.val/opdetm.spare,opdetm.val)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This works however, I need to add another&amp;nbsp; calculation changing the opdetm.val returned to a negative if the following field:- opheadm.Order_No like 'CN%' . &lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705709#M673032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-19T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Expressions- if then else/ nested Ifs</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705710#M673033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if((year(enquiry_award_loss_date)=YR and month(enquiry_award_loss_date)=Mth and (TeamStatus = 'Active') and (opheadm.status&amp;lt;9)and (Whiteboardexclusion&amp;lt;&amp;gt;'1'), if((opdetm.spare)&amp;gt;'0',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Wildmatch(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;opheadm.Order_No,'CN?'), -1*&lt;/SPAN&gt;&amp;nbsp; opdetm.val/opdetm.spare, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;opdetm.val/opdetm.spare&lt;/SPAN&gt;),&amp;nbsp; opdetm.val)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705710#M673033</guid>
      <dc:creator />
      <dc:date>2014-08-19T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Expressions- if then else/ nested Ifs</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705711#M673034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CN still displays a positive value . This is what happens each time for me but thank you for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 16:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705711#M673034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-19T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Expressions- if then else/ nested Ifs</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705712#M673035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thought. You can check this expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Wildmatch(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;opheadm.Order_No,'CN?')&amp;nbsp; so here it will be true only if there are three letters like CNA or CNS. But if there are more letters like ACNbi or CNlio then it will always fail. For those you can use '*cn*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 16:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expressions-if-then-else-nested-Ifs/m-p/705712#M673035</guid>
      <dc:creator />
      <dc:date>2014-08-19T16:31:00Z</dc:date>
    </item>
  </channel>
</rss>

