<?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: How to use Aggr()  with various conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976157#M467868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 12:22:44 GMT</pubDate>
    <dc:creator>gautik92</dc:creator>
    <dc:date>2015-10-14T12:22:44Z</dc:date>
    <item>
      <title>How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976155#M467866</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 would like to have a straight table with one dimension:&amp;nbsp; Country, which shows various totals of the country's branches.&lt;/P&gt;&lt;P&gt;Some of the calculations involve checking conditions based on branch definitions.&lt;/P&gt;&lt;P&gt;But I'm not sure if I can do it by using the Aggr() function. From what I tried so far, nothing came out..&lt;/P&gt;&lt;P&gt;A tweaked example:&amp;nbsp; all the fields marked in blue are defined for a branch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Calculating total number of employees, which is based on some conditions:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;SomeFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;=1 and isnull(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;SomeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;)=0,&lt;BR /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;StockFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;SmallBranch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;YearSale&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthNameSale&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;BranchNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;O&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;FEmployees&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;Branch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vNumOfXXX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;YearSale &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthNameSale &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;BranchNoOFEmployees&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #1f497d;"&gt;BranchName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vNumOfYYY&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;There might be some syntax errors, but i'm more concerned about the logic to be applied.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 10:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976155#M467866</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-14T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976156#M467867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your dimension is Country and a specific country shows multiple branches, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use above as expression, QV will try to evaluated the if() statement conditions in the context of the dimension line, i.e. a specific &lt;SPAN style="text-decoration: line-through;"&gt;branch &lt;/SPAN&gt;country. It is only able to do so if SomeFlag,SomeDate, StockFlag and SmallBranch is unambiguous in that context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976156#M467867</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-14T12:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976157#M467868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976157#M467868</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-10-14T12:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976158#M467869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the recommended way to calculate such a metric?&lt;/P&gt;&lt;P&gt;It is used also as a part of another expression in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976158#M467869</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-14T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976159#M467870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not really sure what you are trying to achieve. Some more details would definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you can add a second dimension, Branch, to split your metric across Countries and Branches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or leave it with one dimension, and create several expressions, limiting your expressions each to a single branch.&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;=Sum({&amp;lt;BranchName = {'A'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your above code, maybe all you need to do is to embed the conditional in your aggregation (similar to what Henric discussed in his blog post):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;YearSale&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;MonthNameSale&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 12px; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: green;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: #1f497d;"&gt;SomeFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: green;"&gt;=1 and isnull(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: #1f497d;"&gt;SomeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: green;"&gt;)=0,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: #1f497d;"&gt;StockFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: black;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: #1f497d;"&gt;SmallBranch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: black;"&gt; = 0, &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 12px; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;vNumOfXXX, vNumOfYYY&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-style: inherit; font-weight: inherit; font-family: 'Courier New'; color: black;"&gt;)) *&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #1f497d;"&gt;BranchNo&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;O&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #1f497d;"&gt;FEmployees&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #1f497d;"&gt;Branch&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;But latter is hard to decide without knowing anything about your setting.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976159#M467870</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-14T14:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976160#M467871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You nailed it!&lt;/P&gt;&lt;P&gt;your latter expression did the job!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/976160#M467871</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-14T14:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Aggr()  with various conditions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/1736023#M467872</link>
      <description>&lt;P&gt;i tried this it did not work i currently have this ranking&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(Sum(amt1)/Sum(amt2)),Dimension1)&amp;lt;=10 , Dimension1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add condition&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp;( dimension2 = 1 and dimension3=&amp;nbsp;2, dimension1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do i incorporate the if condition i tried various ways no luck thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 18:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Aggr-with-various-conditions/m-p/1736023#M467872</guid>
      <dc:creator>mlatabhi</dc:creator>
      <dc:date>2020-08-14T18:12:20Z</dc:date>
    </item>
  </channel>
</rss>

