<?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: Need help in Expression (Total) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476122#M177802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total for each customer would need to have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(Distinct(Trs_No))/Count(TOTAL &amp;lt;Customer&amp;gt; (Distinct(Trans_No)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I think you can also use the Aggr() function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(Distinct(Trs_No))/Aggr(Count((Distinct(Trans_No))), Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 09:31:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-08T09:31:01Z</dc:date>
    <item>
      <title>Need help in Expression (Total)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476119#M177799</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;The expression which is not working as I am trying to find overall % of each customer, and the expression is as followed and the Tras_No has some duplicate records so when I use TOTAL with Distinct the expression become incorrect, could you please any one suggest workaround for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct(Trs_No))/Count(TOTAL(Distinct(Trans_No)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476119#M177799</guid>
      <dc:creator />
      <dc:date>2013-08-08T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Expression (Total)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476120#M177800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct(Trs_No))/Count(TOTAL Distinct(Trans_No))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476120#M177800</guid>
      <dc:creator />
      <dc:date>2013-08-08T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Expression (Total)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476121#M177801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct&amp;nbsp; Trs_No)/Count(TOTAL Distinct Trans_No)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476121#M177801</guid>
      <dc:creator />
      <dc:date>2013-08-08T09:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Expression (Total)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476122#M177802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total for each customer would need to have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(Distinct(Trs_No))/Count(TOTAL &amp;lt;Customer&amp;gt; (Distinct(Trans_No)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I think you can also use the Aggr() function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(Distinct(Trs_No))/Aggr(Count((Distinct(Trans_No))), Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Expression-Total/m-p/476122#M177802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-08T09:31:01Z</dc:date>
    </item>
  </channel>
</rss>

