<?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 Expression based on dimension that is not in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension-that-is-not-in-a-chart/m-p/1045688#M940697</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;First of all, I'm a rookie in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't write a formula, that would count number of items that had sales less than 500 Eur per period.&lt;/P&gt;&lt;P&gt;So, I tried to write IF(SUM(Sales_amount)&amp;lt;500, Count(Distinct(item)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that my chart contains not items (as dimension) but item groups and item type, but Sales_amount must be based on items, not on item groups.&lt;/P&gt;&lt;P&gt;So I know that somehow I should use aggr function, but I don't understand where and how. Please, help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 14:47:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-21T14:47:15Z</dc:date>
    <item>
      <title>Expression based on dimension that is not in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension-that-is-not-in-a-chart/m-p/1045688#M940697</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;First of all, I'm a rookie in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't write a formula, that would count number of items that had sales less than 500 Eur per period.&lt;/P&gt;&lt;P&gt;So, I tried to write IF(SUM(Sales_amount)&amp;lt;500, Count(Distinct(item)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that my chart contains not items (as dimension) but item groups and item type, but Sales_amount must be based on items, not on item groups.&lt;/P&gt;&lt;P&gt;So I know that somehow I should use aggr function, but I don't understand where and how. Please, help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 14:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension-that-is-not-in-a-chart/m-p/1045688#M940697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-21T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension that is not in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension-that-is-not-in-a-chart/m-p/1045689#M940698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below with multi AGGR functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(AGGR(Sum(Sales_Amount),item) &amp;lt; 500 , AGGR(Count(item),item_type))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension-that-is-not-in-a-chart/m-p/1045689#M940698</guid>
      <dc:creator />
      <dc:date>2016-01-21T18:34:26Z</dc:date>
    </item>
  </channel>
</rss>

