<?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: Sum Totals with two different conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395462#M423664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ! It works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 06:39:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-20T06:39:46Z</dc:date>
    <item>
      <title>Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395457#M423659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a total in a denominator for reaching a 100% .&lt;/P&gt;&lt;P&gt;The thing is that&amp;nbsp; I have two &lt;STRONG&gt;conditions&lt;/STRONG&gt; parts in the expression so I need to have a total expression taking into account these conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example, the first expression is Okey, for the numerator but, for the denominator, I need to aggregate by totals and taking into account the &lt;STRONG&gt;condtions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395457#M423659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T09:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395458#M423660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Beatriz,&lt;/P&gt;&lt;P&gt;please try below expression as your denominator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;{&amp;lt;&lt;SPAN style="color: #800000;"&gt;TypeDate&lt;/SPAN&gt;={'Atype'},&lt;SPAN style="color: #800000;"&gt;State&lt;/SPAN&gt;={'A'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;idProduct&lt;/SPAN&gt;) + &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;{&amp;lt;&lt;SPAN style="color: #800000;"&gt;TypeDate&lt;/SPAN&gt;={'Btype'},&lt;SPAN style="color: #800000;"&gt;State&lt;/SPAN&gt; ={'B','C','D'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;idProduct&lt;/SPAN&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395458#M423660</guid>
      <dc:creator>madhumitha</dc:creator>
      <dc:date>2017-10-19T09:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395459#M423661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the attached for Denominator use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; distinct{&amp;lt;TypeDate={'Atype'},State={'A'}&amp;gt;}idProduct) + Count(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; distinct{&amp;lt;TypeDate={'Btype'},State ={'B','C','D'}&amp;gt;}idProduct )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OP1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180186_OP1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395459#M423661</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-19T10:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395460#M423662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another way to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL Aggr(If(State = 'A', Count(DISTINCT {&amp;lt;TypeDate={'Atype'}&amp;gt;}idProduct),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(State = 'B' or State = 'C' or State = 'D', Count(DISTINCT {&amp;lt;TypeDate={'Btype'}&amp;gt;}idProduct))), State))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180200_Capture.PNG" style="height: 136px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 11:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395460#M423662</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-19T11:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395461#M423663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; a lot Sunny, your solution worked and helped me as always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 06:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395461#M423663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T06:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395462#M423664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ! It works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 06:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395462#M423664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T06:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Totals with two different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395463#M423665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Madhu! I needed to add totals to that expression in order to work. Thanks for you help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 06:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Totals-with-two-different-conditions/m-p/1395463#M423665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T06:41:11Z</dc:date>
    </item>
  </channel>
</rss>

