<?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 Conditional Where Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720948#M475479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to show the total number of projects in a table and then break that total down by Total projects won and total Projects Lost. I can get the Total Number of Projects to show but not the Total Won or Total Lost.&amp;nbsp; I would also need to break these down by percentages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 19:25:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-21T19:25:46Z</dc:date>
    <item>
      <title>Conditional Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720948#M475479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to show the total number of projects in a table and then break that total down by Total projects won and total Projects Lost. I can get the Total Number of Projects to show but not the Total Won or Total Lost.&amp;nbsp; I would also need to break these down by percentages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 19:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720948#M475479</guid>
      <dc:creator />
      <dc:date>2014-07-21T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720949#M475480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toedtli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 19:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720949#M475480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T19:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720950#M475481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming you want to use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project - ID For Project&lt;/P&gt;&lt;P&gt;Status - Won or lost, column in table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({1} Distinct Project) = Total number of projects&lt;BR /&gt;Count({1&amp;lt;Status={'Won'}&amp;gt; Distinct Project) = Total number of projects won&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;Status={'Lost'}&amp;gt; Distinct Project) = Total number of projects lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the 'Project' and 'Status' columns above with the column names from your table.&amp;nbsp; This is done in the designer as an expression in your object, not in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 19:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720950#M475481</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-07-21T19:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720951#M475482</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;You can use set analysis to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For total projects:&lt;/P&gt;&lt;P&gt;count(projectid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For win projects (supposing fwin is a flag field where the value 1 is win and 0 is lost):&lt;/P&gt;&lt;P&gt;count({$&amp;lt;fwin={1}&amp;gt;} projectid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For lost projects&lt;/P&gt;&lt;P&gt;count({$&amp;lt;fwin={0}&amp;gt;} projectid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(you can also use 'distinct' with any of the count functions above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 19:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Where-Statement/m-p/720951#M475482</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-07-21T19:59:21Z</dc:date>
    </item>
  </channel>
</rss>

