<?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 Is there something wrong in this expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637909#M595888</link>
    <description>&lt;P&gt;Hi QV users,&lt;/P&gt;&lt;P&gt;i'am writing an expression like the following, but it not works:&lt;/P&gt;&lt;P&gt;If([field1]='not null', If([field2]=030357,'output1','output2')&lt;/P&gt;&lt;P&gt;My goals is to create a new field that show me:&lt;/P&gt;&lt;P&gt;a) output1, if field1 is not null and field2 = 030357&lt;/P&gt;&lt;P&gt;b) output2, if field1 is not null and field2 &amp;lt;&amp;gt; 030357&lt;/P&gt;&lt;P&gt;Is there something wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 15:07:33 GMT</pubDate>
    <dc:creator>Mattia</dc:creator>
    <dc:date>2019-10-21T15:07:33Z</dc:date>
    <item>
      <title>Is there something wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637909#M595888</link>
      <description>&lt;P&gt;Hi QV users,&lt;/P&gt;&lt;P&gt;i'am writing an expression like the following, but it not works:&lt;/P&gt;&lt;P&gt;If([field1]='not null', If([field2]=030357,'output1','output2')&lt;/P&gt;&lt;P&gt;My goals is to create a new field that show me:&lt;/P&gt;&lt;P&gt;a) output1, if field1 is not null and field2 = 030357&lt;/P&gt;&lt;P&gt;b) output2, if field1 is not null and field2 &amp;lt;&amp;gt; 030357&lt;/P&gt;&lt;P&gt;Is there something wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637909#M595888</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-21T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there soemting wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637912#M595889</link>
      <description>&lt;P&gt;can u share the rawdata?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637912#M595889</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-10-21T15:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there soemting wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637915#M595890</link>
      <description>&lt;P&gt;Sorry Frank, i can't do this now.&lt;/P&gt;&lt;P&gt;Can you help me anyway?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637915#M595890</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-21T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there something wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637917#M595891</link>
      <description>&lt;P&gt;Hi Mattia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give this one a try:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;IF(NOT IsNull(&lt;SPAN&gt;[field1]) AND&amp;nbsp;[field2]=030357,&amp;nbsp;'output1',&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;IF(NOT IsNull([field1]) AND&amp;nbsp;[field2]&amp;lt;&amp;gt;030357,&amp;nbsp;'output2',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'output3') )as Output&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There needs to be a third output there though. Because there are more than just those 2 options in your equation&amp;nbsp;-&amp;gt; ex: When [field1] is Null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope that helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;S.T.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637917#M595891</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-21T15:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there something wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637926#M595892</link>
      <description>&lt;P&gt;Hi Stoyan!&lt;/P&gt;&lt;P&gt;is it possible to have an expression that shows only two options?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637926#M595892</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-21T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there something wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637930#M595893</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Len(Trim([field1])) &amp;gt; 0,
  If([field2] = '030357', 'output1', 'output2')
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1637930#M595893</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-21T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there something wrong in this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1638173#M595894</link>
      <description>&lt;P&gt;Thanks Sunny!&lt;/P&gt;&lt;P&gt;It works perfectly!!!&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 07:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-something-wrong-in-this-expression/m-p/1638173#M595894</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-22T07:48:58Z</dc:date>
    </item>
  </channel>
</rss>

