<?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: Distinct Expression Totals/Percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506186#M1147373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it still doesn't work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first bracket after Num is showing as red.&amp;nbsp; Not sure whether this is causing the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 12:26:34 GMT</pubDate>
    <dc:creator>danielnevitt</dc:creator>
    <dc:date>2013-06-25T12:26:34Z</dc:date>
    <item>
      <title>Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506182#M1147369</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;When creating List Boxes with Sum Totals I use the following Expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(CONTRACT_QTY_MT)&lt;/P&gt;&lt;P&gt;Num((Sum(CONTRACT_QTY_MT)/Sum(total CONTRACT_QTY_MT)),'##0.0%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I would like to extend this to sum the CONTRACT_QTY_MT and also show as a % of the total CONTRACT_QTY_MT for distinct TRADE_NUM.&amp;nbsp; I created the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM)) - this works fine&lt;/P&gt;&lt;P&gt;Num((Sum(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM))/Sum(total(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM)),'##0.0%') - this however does not display any data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe my issue may be the number of brackets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with the above would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506182#M1147369</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2013-06-25T11:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506183#M1147370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes you have missed the brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Num(Sum(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM))/Sum(total(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM)),'##0.0%'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Narender&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506183#M1147370</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-06-25T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506184#M1147371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narender/er.mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the % values still do not appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506184#M1147371</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2013-06-25T12:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506185#M1147372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;You may try this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Num(Sum(aggr(sum(Distinct CONTRACT_QTY_MT), TRADE_NUM))/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum(total CONTRACT_QTY_MT),'##0.0%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506185#M1147372</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-06-25T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506186#M1147373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it still doesn't work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first bracket after Num is showing as red.&amp;nbsp; Not sure whether this is causing the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506186#M1147373</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2013-06-25T12:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506187#M1147374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Pls see the attachment file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506187#M1147374</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-06-25T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Expression Totals/Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506188#M1147375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Narender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the code works fine.&amp;nbsp; However when inputting against my data, it still shows as blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using source data from an XML file.&amp;nbsp; Do you think the XML file format might be causing the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Expression-Totals-Percentage/m-p/506188#M1147375</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2013-06-25T13:04:02Z</dc:date>
    </item>
  </channel>
</rss>

