<?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: Count expression with multiple nested if statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980847#M946607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect solution - thank you so much! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a really helpful explanation. Will keep a note of that somewhere and hopefully it'll help me when writing my own expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Jess &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 09:14:22 GMT</pubDate>
    <dc:creator>jessica_webb</dc:creator>
    <dc:date>2016-01-07T09:14:22Z</dc:date>
    <item>
      <title>Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980838#M946594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very complex expression (for me anyway) that I am really struggling with and I'm hopeful that someone might have a solution. I would be very happy with either a working expression, or a suggestion as to how to create a new field in the script to give the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 fields, all with many duplicates on rows:&lt;/P&gt;&lt;P&gt;Candidate&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;Flag&lt;/P&gt;&lt;P&gt;Points&lt;/P&gt;&lt;P&gt;E.g.&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;Row&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Candidate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Points&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AB1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;kdjf87&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AB1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;djf9083u&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;No&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;220&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AB1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sdj2983&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;280&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AB1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;klhg987&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;290&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CD2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sdfa45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CD2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sdfa235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CD2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;fgah235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;255&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CD2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;tjsjs235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;280&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a bar chart that shows the number of candidates who meet the following criteria:&lt;/P&gt;&lt;P&gt;If a candidate has 3 distinct 'Code' fields, where 'Flag = 'Yes'' and 'Points &amp;gt;=240&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;has 2 distinct&amp;nbsp; 'Code' fields, where 'Flag = 'Yes'' and 'Points &amp;gt;=270&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my table above, Candidate AB1 would count as meeting criteria, because of rows 1, 3 and 4. &lt;/P&gt;&lt;P&gt;However Candidate CD2 would not because although they meet the first criteria on rows 5, 6, 7 and 8, they do not meet the second criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've come up with:&lt;/P&gt;&lt;P&gt;Count(Distinct(If(&lt;/P&gt;&lt;P&gt;Sum(If(Flag = 'Yes' and Points &amp;gt;=240)) &amp;gt;=3&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Sum(If(Flag = 'Yes' and Points &amp;gt;=270)) &amp;gt;=3)) Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no luck so far. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't be able to respond to any suggestions until after the new year, but if anyone is able to think this over for me, I would be very grateful! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980838#M946594</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-12-23T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980839#M946596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Candidate={"=count({&amp;lt;Flag={'Yes'},Points={'&amp;gt;=240'}&amp;gt;}distinct Code)=3"}&amp;gt;*&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Candidate={"=count({&amp;lt;Flag={'Yes'},Points={'&amp;gt;=270'}&amp;gt;}distinct Code)=2"}&amp;gt;&lt;/SPAN&gt;}distinct Candidate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980839#M946596</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-23T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980840#M946598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;=Count(DISTINCT {&amp;lt;Candidate = {"=Count({&amp;lt;Flag = {'Yes'}, Points = {'&amp;gt;=240'}&amp;gt;}Candidate) &amp;gt;= 3"}*{"=Count({&amp;lt;Flag = {'Yes'}, Points = {'&amp;gt;=270'}&amp;gt;}Candidate) &amp;gt;= 2"}&amp;gt;} Candidate)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking a leaf out of Gysbert's book here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;Candidate = {"=Count(DISTINCT {&amp;lt;Flag = {'Yes'}, Points = {'&amp;gt;=240'}&amp;gt;}Code) &amp;gt;= 3"}*{"=Count(DISTINCT {&amp;lt;Flag = {'Yes'}, Points = {'&amp;gt;=270'}&amp;gt;}Code) &amp;gt;= 2"}&amp;gt;} Candidate)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="109887" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109887_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980840#M946598</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-23T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980841#M946600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica, I think that if you want to show the number of candidates that satisfy this conditions you can do the following in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (&amp;nbsp; (count(distinct CODE)=3 and Flag="Yes" and Points&amp;gt;240 , sum (distinct candidate ) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if (&amp;nbsp; (count(distinct CODE)=2 and Flag="Yes" and Points&amp;gt;270 , sum (distinct candidate ) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that it help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agustin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 18:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980841#M946600</guid>
      <dc:creator />
      <dc:date>2015-12-23T18:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980842#M946602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Gysbert - worked almost perfectly (just had to change '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;distinct Code)=3' to '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;distinct Code)&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;=3'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fantastic solution - greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980842#M946602</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-04T14:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980843#M946603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting the edit there. Took me a while to work out why it wasn't working as I wanted it to before I realised... Should have read your message first &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980843#M946603</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-04T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980844#M946604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Agustin. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did give it a go, but something wasn't working quite right (it failed at 'Points&amp;gt;240'), but haven't investigated as the first answer I was given has worked great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980844#M946604</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-04T14:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980845#M946605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping you might be able to answer a question I had about the expression you suggested. As I said, it seems to working perfectly. I have now tried to adapt it for another graph I need, where the criteria are similar (but not the same) and there is only one main condition (i.e the second part of the expression is not needed). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Location={'London'},Candidate={"=count({&amp;lt;Type={'Old'},Points={'&amp;gt;=150'}&amp;gt;}distinct Code)&amp;gt;=2"}&amp;gt;}distinct Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another chart shows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Location={'London'},Candidate={"=count({&amp;lt;Type={'New'},Points={'&amp;gt;=150'}&amp;gt;}distinct Code)&amp;gt;=2"}&amp;gt;}distinct Candidate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I thought this was also working ok, however I have a list box for 'Type' field, and when I select 'New', the graph with the first expression still shows a value, which I wouldn't expect as it should only be for Type 'Old'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Looking at the expression, the values in single quotation marks (e.g. 'Old') are in the reddish text, rather than black as they normally are. Could this be making a difference? However, 'London' is in black text as expected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Are you able to see where I'm going wrong? And are you able to explain what the blue, red and black font means within a QV expression? I've googled this, but can't find an explanation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Many thanks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Jess&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 10:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980845#M946605</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-05T10:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980846#M946606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try adding that set modifier for Type to outer expression too:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Type={'Old'},&lt;/STRONG&gt;&lt;/SPAN&gt;Location={'London'},Candidate={"=count({&amp;lt;Type={'Old'},Points={'&amp;gt;=150'}&amp;gt;}distinct Code)&amp;gt;=2"}&amp;gt;}distinct Candidate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;That way it's not only used in the search expression for the Candidate field, but also applied to the outer count expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Keywords are blue and so are reference to expression labels in chart expression, field names are in red as are text strings in double quotes. That's because double quotes can also be use to mark field and table names, just as [ ] and ` can be used to quote field and table names. It's necessary to use quotes if a field name contains one or more space characters. The rest of an expression like values in single quotes are shown in black.&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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980846#M946606</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-05T16:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression with multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980847#M946607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect solution - thank you so much! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a really helpful explanation. Will keep a note of that somewhere and hopefully it'll help me when writing my own expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Jess &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-with-multiple-nested-if-statements/m-p/980847#M946607</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-07T09:14:22Z</dc:date>
    </item>
  </channel>
</rss>

