<?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: Count in Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-in-Calculated-Dimension/m-p/403464#M488528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO, the best way to do this would be to add a calculation to the load script.&amp;nbsp; Your dashboard performance may take a serious hit if you're trying to do this via a calculated dimension, especially if that is only a piece of the code you want to represent that dimension.&amp;nbsp; You should be able to achieve the same result using if statements in the load, rather than getting into the messiness of set analysis in a dimension.&amp;nbsp; If you post a sample of your app, I can take a look for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 21:41:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-08T21:41:39Z</dc:date>
    <item>
      <title>Count in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Calculated-Dimension/m-p/403463#M488527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problems adding a formula in the calculated dimension. The plan is to have the dimension calculated by the totals of quantity and frequency of a product, with the results being different categories such as Class A, Class B, Class C and so on. This would become a "new" calculated category assigned as it is calculated from the current reloaded data.(These categories exist on the data tables coming in.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the formula that seems to work as expression: if(Count(DISTINCT{$&amp;lt;Rolling12Mth={1},[Qty Sold]={"&amp;gt;0"}&amp;gt;}Month)&amp;gt;'5' and Sum([Sales])&amp;gt;7999,'Class A') ; and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula explanation: if the sale frequency is more than 5 months with a sale above $0 in the last 12 rolling months and have sales value more than $7999, then categorize is as "Class A".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use this in dimension level so I can show $ values as expressions based on the dimension category, this would permit me to see the categories and $ values instead of having at expression level and showing only product level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the best method? Would there be a better way to do this? FYI the IF statement would continue with further calculations for the other categories in the same formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Calculated-Dimension/m-p/403463#M488527</guid>
      <dc:creator>jarebpat</dc:creator>
      <dc:date>2013-01-08T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-Calculated-Dimension/m-p/403464#M488528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO, the best way to do this would be to add a calculation to the load script.&amp;nbsp; Your dashboard performance may take a serious hit if you're trying to do this via a calculated dimension, especially if that is only a piece of the code you want to represent that dimension.&amp;nbsp; You should be able to achieve the same result using if statements in the load, rather than getting into the messiness of set analysis in a dimension.&amp;nbsp; If you post a sample of your app, I can take a look for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-Calculated-Dimension/m-p/403464#M488528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T21:41:39Z</dc:date>
    </item>
  </channel>
</rss>

