<?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 Set Analysis Modier Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238306#M502269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All....&lt;/P&gt;&lt;P&gt;I'm working on a Scorecard application. There are two tables: Metrics and CRMTransactions. They are linked by MetricId.&lt;/P&gt;&lt;P&gt;I have a straight table with Metric ID as a dimension. For one of my calculations I need to count transactions for a metric and divide them by the count of a different metric. It seems like this should be an easy calculation with set analysis but I can't seem to get it right. Here's my expression:&lt;/P&gt;&lt;P&gt;If(MetricId=5,count({$&amp;lt;CRMTranYear={$(=varYear)}&amp;gt;} CRMRecSource / count({$&amp;lt;MetricId={2}&amp;gt;}CRMRecSource))&lt;/P&gt;&lt;P&gt;I have tested the numerator portion of this equation and it returns the expected value. The denominator portion only returns zero when I test it by itself.&lt;/P&gt;&lt;P&gt;For Metric 5 how do count all of Metric 2 records to use as the denominator of my equation?&lt;/P&gt;&lt;P&gt;Thanks in advance, this has me stumped.&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jul 2010 00:44:47 GMT</pubDate>
    <dc:creator>mjt_childrens</dc:creator>
    <dc:date>2010-07-30T00:44:47Z</dc:date>
    <item>
      <title>Set Analysis Modier Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238306#M502269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All....&lt;/P&gt;&lt;P&gt;I'm working on a Scorecard application. There are two tables: Metrics and CRMTransactions. They are linked by MetricId.&lt;/P&gt;&lt;P&gt;I have a straight table with Metric ID as a dimension. For one of my calculations I need to count transactions for a metric and divide them by the count of a different metric. It seems like this should be an easy calculation with set analysis but I can't seem to get it right. Here's my expression:&lt;/P&gt;&lt;P&gt;If(MetricId=5,count({$&amp;lt;CRMTranYear={$(=varYear)}&amp;gt;} CRMRecSource / count({$&amp;lt;MetricId={2}&amp;gt;}CRMRecSource))&lt;/P&gt;&lt;P&gt;I have tested the numerator portion of this equation and it returns the expected value. The denominator portion only returns zero when I test it by itself.&lt;/P&gt;&lt;P&gt;For Metric 5 how do count all of Metric 2 records to use as the denominator of my equation?&lt;/P&gt;&lt;P&gt;Thanks in advance, this has me stumped.&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 00:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238306#M502269</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-07-30T00:44:47Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Modier Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238307#M502270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martha,&lt;/P&gt;&lt;P&gt;Try this (just add the TOTAL qualifier):&lt;/P&gt;&lt;P&gt;If(MetricId=5,count({$&amp;lt;CRMTranYear={$(=varYear)}&amp;gt;} CRMRecSource / count({$&amp;lt;MetricId={2}&amp;gt;} TOTAL CRMRecSource))&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 02:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238307#M502270</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-07-30T02:47:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Modier Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238308#M502271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike, Thanks. That was the key. I really appreaciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 03:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Modier-Question/m-p/238308#M502271</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-07-30T03:41:29Z</dc:date>
    </item>
  </channel>
</rss>

