<?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: Adding multiple if statements in a ValueList in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679346#M1053510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use - &lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;City=-{Paris,London,Tokyo}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[OrderStatus]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=-{F,S}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 17:44:15 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-10-22T17:44:15Z</dc:date>
    <item>
      <title>Adding multiple if statements in a ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679345#M1053509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to add multiple 'if not' statements to a Valuelist. I currently have a valuelist that looks for orders in a particular status, but would like one to look for orders that do not have a status of 'F' or 'S'... The code I have for the single status is as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vShowQty&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Valuelist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('PriorYear', 'Budget', 'CurrentYear')='CurrentYear',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Sales.Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'2014/15'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[OrderStatus]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'F'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OSQTY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),0)&lt;BR /&gt; &lt;BR /&gt; ,&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Valuelist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('PriorYear', 'Budget', 'CurrentYear')='CurrentYear',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Sales.Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'2014/15'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[OrderStatus]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'F'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OSValueGBP&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),0)&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679345#M1053509</guid>
      <dc:creator />
      <dc:date>2014-10-22T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple if statements in a ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679346#M1053510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use - &lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;City=-{Paris,London,Tokyo}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[OrderStatus]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=-{F,S}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679346#M1053510</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-22T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple if statements in a ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679347#M1053511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did already try this method, but I couldn't get it to work.... There is an error in the syntax apparently. It works in this method like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[OrderStatus]={'F','S'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not with the 'not equals' in....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 08:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679347#M1053511</guid>
      <dc:creator />
      <dc:date>2014-10-23T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple if statements in a ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679348#M1053512</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;I assume you're talking about the red squiggle underline. This is a bug in the expression editor for implicit set operations.&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;[OrderStatus]-={'F','S'} &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;&lt;BR /&gt;&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;is legal, despite the error indication. &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 you prefer to not have the error warning, you can write the equivalent logic written with an explicit set operation:&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;&lt;BR /&gt;&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;[OrderStatus]={'*'} - {'F','S'}&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;&lt;BR /&gt;&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;HTH&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;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679348#M1053512</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-23T09:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple if statements in a ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679349#M1053513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might see red lines appeared in your expression after you added minus. Are you saying syntax error because of red lines or you got "Error in expression"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-multiple-if-statements-in-a-ValueList/m-p/679349#M1053513</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-23T09:10:11Z</dc:date>
    </item>
  </channel>
</rss>

