<?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 Simple selection question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290397#M107795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try doing for sales this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;sum(if(SPTargetDate = MasterDate, SPTarget))=0,0,&lt;/STRONG&gt;&lt;STRONG&gt;sum(if(OrderDate = MasterDate, SalesQty)) )&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 14:44:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-09T14:44:01Z</dc:date>
    <item>
      <title>Simple selection question</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290396#M107794</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 am wondering if you can assist with, what I think is a small issue.&lt;/P&gt;&lt;P&gt;I have the following related QlikView "tables" &lt;/P&gt;&lt;P&gt;&lt;IMG alt="targets.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/9374_targets.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to create a simple chart where the dimension is "&lt;SPAN style="text-decoration: underline;"&gt;SalesPersonName&lt;/SPAN&gt;" (from the "SalesPersons" table) and the 2 expressions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Sales:&lt;/SPAN&gt; &lt;STRONG&gt;=sum(if(OrderDate = MasterDate, SalesQty))&amp;nbsp; &lt;/STRONG&gt;where "OrderDate" is the date in the Sales table (out of view above) and "MasteDate" is my date in the calendar that I use to display date choices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Targets&lt;/SPAN&gt;: &lt;STRONG&gt;=sum(if(SPTargetDate = MasterDate, SPTarget)) &lt;/STRONG&gt;where "SPTargetDate" is the date in the SalesPersonsTargets table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above works fine and I would typically get:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 50%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Salesperson&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Targets&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Andrew&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ben&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Charles&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Edward&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is OK but I want to restrict it to list SalesPersonst that &lt;SPAN style="text-decoration: underline;"&gt;have&lt;/SPAN&gt; targets ONLY so "David" in the above example should not be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody have any quick suggestions?&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Rok &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290396#M107794</guid>
      <dc:creator />
      <dc:date>2011-12-09T14:34:47Z</dc:date>
    </item>
    <item>
      <title>Simple selection question</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290397#M107795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try doing for sales this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;sum(if(SPTargetDate = MasterDate, SPTarget))=0,0,&lt;/STRONG&gt;&lt;STRONG&gt;sum(if(OrderDate = MasterDate, SalesQty)) )&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290397#M107795</guid>
      <dc:creator />
      <dc:date>2011-12-09T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple selection question</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290398#M107796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - thanx for your help (and in record time too!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-selection-question/m-p/290398#M107796</guid>
      <dc:creator />
      <dc:date>2011-12-09T16:10:25Z</dc:date>
    </item>
  </channel>
</rss>

