<?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: Conditional Expression Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381294#M142267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 15:14:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-28T15:14:25Z</dc:date>
    <item>
      <title>Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381288#M142261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could use some help and guidance here.&amp;nbsp; I have a set of reports that I need a column to count a piece of data only if it meets a specifc condition.&amp;nbsp; The field I need to count can contain several options, all text, but I would like to count only those matching one of them in a separate column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried an IF statement like this:&amp;nbsp; =&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Price Source]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'OV',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;textcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Price Source]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have also tried to use an &amp;lt;&amp;gt; does not equal statement.&amp;nbsp; The Price Source field and the Price Source Original fields can be the same unless someone overrode the suggested price, hence the 'OV' in the field I would like to count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Right now it is set up as a expression in the table properties, but I am open to suggestions on how to make this work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381288#M142261</guid>
      <dc:creator />
      <dc:date>2012-08-27T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381289#M142262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;[Price Source]={'OV'}&amp;gt;}[Price Source])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381289#M142262</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-08-27T19:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381290#M142263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct logic with "if":&lt;/P&gt;&lt;P&gt;=count(if([Price Source]='OV',&amp;nbsp; [Price Source])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 01:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381290#M142263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-28T01:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381291#M142264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the answer as correct if it worked for you.&amp;nbsp; It makes it easier for people looking for similar problems to find an answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 12:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381291#M142264</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-08-28T12:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381292#M142265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole, it was very helpful and worked like a charm.&amp;nbsp; I do have one more challenge for you though.&amp;nbsp; Obviously I am looking at pricing and sales data, and in both of the columns mentioned I have multiple options returned in the data base.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify the statement that you provided so that I continue to count the 'OV' items in the Price source column, but exclude any in the Price Source Original column that equal a specific value, Like 'P0'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help and direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 13:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381292#M142265</guid>
      <dc:creator />
      <dc:date>2012-08-28T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381293#M142266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;[Price Source]={'OV'}, [Price Source Original] /= {'P0', 'P1'}&amp;gt;}[Price Source])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will ignore anything in the Price Source Original column that has values 'P0' or 'P1' (you can add more to the list as desired).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad it was helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 14:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381293#M142266</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-08-28T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381294#M142267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 15:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-Statement/m-p/381294#M142267</guid>
      <dc:creator />
      <dc:date>2012-08-28T15:14:25Z</dc:date>
    </item>
  </channel>
</rss>

