<?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: Problem with aggr() or only() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311007#M515269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be this if you don't have a pre-aggregated &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Interaction per month column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Bank = {"=Count(Interaction) &amp;gt; 0"}&amp;gt;} Cost)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 11:14:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-22T11:14:36Z</dc:date>
    <item>
      <title>Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311005#M515267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to calculate the total cost only with bank where i have an interaction&lt;/P&gt;&lt;P&gt;I don't arrive to fix this issue with the function aggr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 224px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="21" width="80"&gt;Bank&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="144"&gt;Interaction per month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;Bank1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank7&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="21" width="80"&gt;Bank&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="80"&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;Bank1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;&lt;P&gt;10000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Bank7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;&lt;P&gt;10000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total cost expected is 40000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311005#M515267</guid>
      <dc:creator>ericheleine</dc:creator>
      <dc:date>2017-05-22T11:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311006#M515268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Sum( {&amp;lt;[Interaction per month]={'&amp;gt;0'}&amp;gt;} Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311006#M515268</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-22T11:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311007#M515269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be this if you don't have a pre-aggregated &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Interaction per month column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Bank = {"=Count(Interaction) &amp;gt; 0"}&amp;gt;} Cost)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311007#M515269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-22T11:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311008#M515270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Tresesco for your quick answer.&lt;/P&gt;&lt;P&gt;that doesn't work because Interaction per month is a formula:&lt;BR /&gt;=count(interaction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis doesn't work in this case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311008#M515270</guid>
      <dc:creator>ericheleine</dc:creator>
      <dc:date>2017-05-22T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311009#M515271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then Sunny's suggestion below should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311009#M515271</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-22T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311010#M515272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works perfectly&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, 22 May 2017 11:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311010#M515272</guid>
      <dc:creator>ericheleine</dc:creator>
      <dc:date>2017-05-22T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() or only()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311011#M515273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have just Bank as dimension or do you have Bank and Month as dimension? If you just have Bank as dimension, then you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Bank = {"=Count(Interaction) &amp;gt; 0"}&amp;gt;} Cost)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have Bank and Month as dimension, then may be create a new field in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Bank,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Bank&amp;amp;Month as Key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Key &lt;/SPAN&gt;= {"=Count(Interaction) &amp;gt; 0"}&amp;gt;} Cost)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr-or-only/m-p/1311011#M515273</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-22T11:18:54Z</dc:date>
    </item>
  </channel>
</rss>

