<?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: Multiple IF Statements on Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934660#M950183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny. One more question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to say If (the option selected in my listbox is 'A'), how would I write that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (GetSelected &lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;([Purchase Threshold]) = 'A')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;Is this right?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 17:20:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-15T17:20:53Z</dc:date>
    <item>
      <title>Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934658#M950179</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'm trying to add this definition to an expression. Can someone tell me where I'm making a mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;= IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Purchase Threshold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, '|'),'A') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Purchase Threshold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &amp;lt;&amp;gt; 0 AND (Commitment_Amount)&amp;lt;=3500, SUM(Commitment_Amount)), IF (SubStringCount(Concat(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Purchase Threshold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, '|'),'B') AND GetSelectedCount(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Purchase Threshold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &amp;lt;&amp;gt; 0 AND (Commitment_Amount)&amp;gt;3500, SUM(Commitment_Amount))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934658#M950179</guid>
      <dc:creator />
      <dc:date>2015-12-15T17:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934659#M950180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Couple of things I would change:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;=If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStringCount(Concat(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; [Purchase Threshold], '|'),'A')&lt;/STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;= 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetSelectedCount([Purchase Threshold]) &amp;lt;&amp;gt; 0 and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commitment_Amount &amp;lt;= 3500, SUM(Commitment_Amount),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt; If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStringCount(Concat(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; [Purchase Threshold], '|'),'B') &lt;SPAN style="color: #ff0000;"&gt;= 1&lt;/SPAN&gt; and&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetSelectedCount([Purchase Threshold]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;) &amp;lt;&amp;gt; 0 and&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commitment_Amount &amp;gt; 3500, Sum(Commitment_Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934659#M950180</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-15T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934660#M950183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny. One more question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to say If (the option selected in my listbox is 'A'), how would I write that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (GetSelected &lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;([Purchase Threshold]) = 'A')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;Is this right?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934660#M950183</guid>
      <dc:creator />
      <dc:date>2015-12-15T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934661#M950186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use GetFieldSelections() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GetFieldSelections([Purchase Threshold])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934661#M950186</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-15T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934662#M950189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;OK now I have this. Where am I making a mistake again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;=If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;GetFieldSelections([Purchase Threshold]) =&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt; ‘Micropurchase (&amp;lt;=$3500)’ and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commitment_Amount &amp;lt;= 3500, SUM(Commitment_Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;GetFieldSelections([Purchase Threshold]) =&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt; ‘Simplified (&amp;gt;$3500)’&amp;nbsp; and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commitment_Amount &amp;gt; 3500, Sum(Commitment_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934662#M950189</guid>
      <dc:creator />
      <dc:date>2015-12-15T17:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF Statements on Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934663#M950191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have more than one value selected in a field &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;GetFieldSelections() will return each values separated by a comma.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109190_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I think your expression may be wrong for the data you have selected. If you could attach an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 16:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-Statements-on-Expressions/m-p/934663#M950191</guid>
      <dc:creator />
      <dc:date>2015-12-16T16:12:46Z</dc:date>
    </item>
  </channel>
</rss>

