<?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: not expression in if expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111756#M367628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$@M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 12:39:59 GMT</pubDate>
    <dc:creator>mightyqlikers</dc:creator>
    <dc:date>2016-06-14T12:39:59Z</dc:date>
    <item>
      <title>not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111752#M367624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Notebook&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Notebook&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Notebook&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Notebook&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Stolen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Notebook&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Borrowed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cellphone&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Cellphone&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cellphone&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Broken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cellphone&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Sold&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cellphone&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;In used&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want QV to return in a &lt;STRONG style=": ; color: #575757; font-size: 14pt; text-decoration: underline;"&gt;Textbox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Broken Products = 6&lt;/P&gt;&lt;P&gt;Not Broken Products = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Status='Broken', count(Product))&lt;/P&gt;&lt;P&gt;if(Status=&amp;lt;&amp;gt;'Broken', count(Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunetely it is not working. Is there a solution with if expression and set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111752#M367624</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2016-06-14T12:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111753#M367625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;Count({&amp;lt;Status = {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count({&amp;lt;Status -= {'Broken'}&amp;gt;}Product) &lt;/STRONG&gt;or &lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;Status ={'*'} - {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111753#M367625</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T12:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111754#M367626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count( {&amp;lt;Status={'Broken'}&amp;gt;}Product)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count( {&amp;lt;Status - ={'Broken'}&amp;gt;}Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111754#M367626</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-14T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111755#M367627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this - &lt;/P&gt;&lt;P&gt;='Broken Product = ' &amp;amp; Count({&amp;lt;Status={'Broken'}&amp;gt;}Product) &amp;amp; chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;'Not Broken Products = ' &amp;amp; Count({&amp;lt;Status-={'Broken'}&amp;gt;}Product) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111755#M367627</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-14T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111756#M367628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$@M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111756#M367628</guid>
      <dc:creator>mightyqlikers</dc:creator>
      <dc:date>2016-06-14T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111757#M367629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127812_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111757#M367629</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T12:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111758#M367630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the solution. Is there a solution with an IF- Expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111758#M367630</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2016-06-14T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111759#M367631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1)&lt;STRONG&gt; Count(If(Status = 'Broken', Product))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2)&lt;STRONG&gt; &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count(If(Status &amp;lt;&amp;gt; 'Broken', Product))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111759#M367631</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111760#M367632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated sample. But I am curious to know why do you want to use if rather than set analysis here? Any specific reason here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111760#M367632</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T12:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111761#M367633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set expression will give better performance as it works with reduced set of records &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111761#M367633</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-14T12:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111762#M367634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree and if you need the set expression to be filtered based on selection in Status field. You can try these expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1)&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; Count({&amp;lt;Status &lt;SPAN style="color: #ff0000;"&gt;*&lt;/SPAN&gt;= {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count({&amp;lt;Status&lt;SPAN style="color: #ff0000;"&gt; -&lt;/SPAN&gt;= {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111762#M367634</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T12:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111763#M367635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Set Analysis skills are not that good. But I'm still learning it. Thank you for your advices. I see my mistake with the if expression. I didnt expect that i have to use the count espression first and then the if expression. Thank you very much guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111763#M367635</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2016-06-14T12:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: not expression in if expression</title>
      <link>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111764#M367636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basic set analysis is very easy and efficient way to restrict things. Lets go over the few expressions that I and others have used above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Status = {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regardless of selection in Status, always show count of product where status = Broken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Count({&amp;lt;Status &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;*&lt;/SPAN&gt;= {'Broken'}&amp;gt;}Product) &lt;/STRONG&gt;-&amp;gt; Equailant of &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(If(Status = 'Broken', Product))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Show count of product where status is equal to Broken. But this is going to filter out any broken status if they are not part of the selection. So for instance if you select Sold in your example above, you will see 0 instead of 6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3)&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Count({&amp;lt;Status ={'*'} - {'Broken'}&amp;gt;}Product)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regardless of selection in status, always show couunt of products where status is not equal to broken&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;4) &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Status -= {'Broken'}&amp;gt;}Product) &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-&amp;gt; Equailant of &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(If(Status &amp;lt;&amp;gt; 'Broken', Product))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Show count of product where status is not equal to Broken. But this is going to filter out any non-broken status if they are not part of the selection. So for instance if you select Sold in your example above, you will see 1 instead of 4. If you select Broken, you will see 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help clarify some of your set analysis doubts. For more information read the attached document. The document isn't perfect, but can help you learn a lot of things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-expression-in-if-expression/m-p/1111764#M367636</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T13:00:26Z</dc:date>
    </item>
  </channel>
</rss>

