<?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 How to exclude values only when a specific condition is true? in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/How-to-exclude-values-only-when-a-specific-condition-is-true/m-p/490479#M1551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for taking your time to help me with my question, the thing is that I have the following scenario, let me show you the table example first: &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 333px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="93"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;month &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;bt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Frooty loops&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Oranges&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Oranges&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Pinapples&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Apples &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Apples &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first question is should I do something like this?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(SelectedMonth)},bt = 0&amp;gt; }Product} I wanna do something like this so that I show the selected month-year and the ones that don't have a month or year which are the ones where "bt" = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just part of the problem, the second problem is how do I tell qlik view that if a product is repating like oranges for examples, only show me the one where year and month is different than 0 (note: this is just in case the product is repeating otherwise I would show it), I hope someone can understand and help me with this,, if you have any questions just tell me thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 02:44:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-06T02:44:32Z</dc:date>
    <item>
      <title>How to exclude values only when a specific condition is true?</title>
      <link>https://community.qlik.com/t5/Water-Cooler/How-to-exclude-values-only-when-a-specific-condition-is-true/m-p/490479#M1551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for taking your time to help me with my question, the thing is that I have the following scenario, let me show you the table example first: &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 333px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="93"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;month &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;bt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Frooty loops&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Oranges&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Oranges&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Pinapples&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Apples &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Apples &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first question is should I do something like this?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(SelectedMonth)},bt = 0&amp;gt; }Product} I wanna do something like this so that I show the selected month-year and the ones that don't have a month or year which are the ones where "bt" = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just part of the problem, the second problem is how do I tell qlik view that if a product is repating like oranges for examples, only show me the one where year and month is different than 0 (note: this is just in case the product is repeating otherwise I would show it), I hope someone can understand and help me with this,, if you have any questions just tell me thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 02:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/How-to-exclude-values-only-when-a-specific-condition-is-true/m-p/490479#M1551</guid>
      <dc:creator />
      <dc:date>2013-09-06T02:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude values only when a specific condition is true?</title>
      <link>https://community.qlik.com/t5/Water-Cooler/How-to-exclude-values-only-when-a-specific-condition-is-true/m-p/490480#M1552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer your first question, SelectedMonth is not required to be included in the set, because qv calculates on selected data unless told(in set analysis) otherwise, therefore i guess &lt;STRONG&gt;sum({&amp;lt;bt ={0}&amp;gt; }Product)&lt;/STRONG&gt; should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For second problem, use count() function to check if it is repeating, like If(Count(Product)&amp;gt;1,...,...). This logic you can try to implement in set as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 04:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/How-to-exclude-values-only-when-a-specific-condition-is-true/m-p/490480#M1552</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T04:25:50Z</dc:date>
    </item>
  </channel>
</rss>

