<?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: Aggr () inside if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401198#M424729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think count needs aggr() else it shows "error in the calculated dimension"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 12:45:36 GMT</pubDate>
    <dc:creator>jduluc12</dc:creator>
    <dc:date>2017-10-05T12:45:36Z</dc:date>
    <item>
      <title>Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401192#M424723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I am writing this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Product.Amount &amp;gt; 0 and aggr(count(distinct Product.SalesDates),&lt;SPAN style="font-size: 13.3333px;"&gt;Product)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;gt; 0&lt;/STRONG&gt;&lt;/SPAN&gt;, Product.Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if (Product.Amount &amp;gt; 0 and aggr(count(distinct Product.SalesDates)&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Product)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;= 0&lt;/STRONG&gt;&lt;/SPAN&gt;, Product.Name) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then it does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The data is available for the second expression also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;why?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401192#M424723</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-05T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401193#M424724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr((count(distinct Product.SalesDates) = 0),if (Product.Amount &amp;gt; 0),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Product.Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401193#M424724</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-10-05T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401194#M424725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you describe the context of this expression? If it's used in a straight table, please specify which dimensions are used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401194#M424725</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-10-05T12:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401195#M424726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has the same problem,&lt;/P&gt;&lt;P&gt;It works when i use &lt;STRONG&gt;&amp;gt;0&lt;/STRONG&gt; and does not work when i use &lt;STRONG&gt;=0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401195#M424726</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-05T12:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401196#M424727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is in a pivot table.&lt;/P&gt;&lt;P&gt;The dimension used is Product.Name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401196#M424727</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-05T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401197#M424728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you use aggr() when a Product selection is being made by the dimension anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If PRoduct.Amount is connected to Product.Name is connected to Product in a 1:1 fashion, and each Product may have zero or more SalesDates, then what about this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF ((Product.Amount &amp;gt; 0) and (Count(DISTINCT Product.SalesDates) = 0), ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401197#M424728</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-10-05T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401198#M424729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think count needs aggr() else it shows "error in the calculated dimension"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401198#M424729</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-05T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401199#M424730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are actually using this expression in a Dimension? Not just the Product.Name as a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please describe what it should produce as dimension values. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 13:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401199#M424730</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-10-05T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401200#M424731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right.&lt;/P&gt;&lt;P&gt;this is dimension. the dimension value should be the product name which does not have any sales date associated with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401200#M424731</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-06T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401201#M424732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what is the actual expression? You're sure you can't reduce the set of available Product.Names to those without sales by using set analysis in your expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 11:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401201#M424732</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-10-06T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401202#M424733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure it has data ? because logically if there is no sales date there should be no amount sold . may be problem is with&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Product.Amount &amp;gt; 0 . &lt;/STRONG&gt;try remove that and check. Just a guess.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Pradosh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401202#M424733</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-06T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401203#M424734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Product.Amount is balance which can be there becasue of previous transactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401203#M424734</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-06T12:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () inside if</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401204#M424735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO, 'it does not work' is not a good issue description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To understand the issue, it's necessary that you add details about your data, model, context of the calculated dimension (other dimensions / expressions? ) and also importantly, about your expectation as user / developer (what you expect to see given the still-to-defined input and context) and the observed result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add more details to make the issue resolving more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, add sample data / a small sample Qlik application demonstrating your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-inside-if/m-p/1401204#M424735</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-06T13:47:18Z</dc:date>
    </item>
  </channel>
</rss>

