<?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 Problem on expression using &amp;lt;total&amp;gt; for calculating percent of time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257822#M495847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 21:56:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-07T21:56:18Z</dc:date>
    <item>
      <title>Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257819#M495844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with expression calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three empoloyees, EmpA, EmpB and EmpC. I also have three activities, ActA, ActB and ActC. Each employee works on an activity and I get the total hours by using the expression sum(HoursWorked). I also calculate the % of hours the particular employee worked on a specific activity. The results are fine until I make a selection of an employee where the % of hours worked changes to 100% instead of remaining to the percentile it was prior to the selection. For caclulating the % I use the expression: sum(HoursWorked)/sum(total &amp;lt;Activities&amp;gt; HoursWorked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 19:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257819#M495844</guid>
      <dc:creator />
      <dc:date>2012-02-06T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257820#M495845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try disregarding the selection in the denominator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(HoursWorked) / sum({&amp;lt;EmpName=&amp;gt;} total &amp;lt;Activities&amp;gt; HoursWorked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And enable the option 'supress zero values' in presentation tab, if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 20:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257820#M495845</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-06T20:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257821#M495846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe this modification of your expression is what you are looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Sum(&lt;SPAN style="color: #800000;"&gt;HoursWorked&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;( {1} &lt;STRONG style="color: #0000ff;"&gt;&lt;STRONG style="color: #0000ff;"&gt;total&amp;lt;&lt;SPAN style="color: #993300;"&gt;Activities&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="color: #993300;"&gt;HoursWorked&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Rainer &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 08:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257821#M495846</guid>
      <dc:creator />
      <dc:date>2012-02-07T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257822#M495847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 21:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257822#M495847</guid>
      <dc:creator />
      <dc:date>2012-02-07T21:56:18Z</dc:date>
    </item>
    <item>
      <title>Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257823#M495848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rainer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 21:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257823#M495848</guid>
      <dc:creator />
      <dc:date>2012-02-07T21:57:49Z</dc:date>
    </item>
    <item>
      <title>Problem on expression using &lt;total&gt; for calculating percent of time</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257824#M495849</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;i think you can solve my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've dimemsions dim1,dim2,dim 3..in hierarchial format as in pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've a value column in the table, as one expr....i'm showing sum(value) and i also have dimension due date....&amp;amp; if the due date &amp;lt;today() date then in the expr column Overdue Amt i simply show sum(value) else i'll show it the Not due column...this is fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i've to find %Overdue &amp;amp; %Not due.....wich is Overdue Amt/sum(value) &amp;amp; Not Due Amt/sum(value) respectively...&lt;/P&gt;&lt;P&gt;i'm getting the % fine..for each row...but at the total level i dnt want to see sum of all % for Overdue &amp;amp; %Not Due&lt;/P&gt;&lt;P&gt;Bt only the sum of Overdue Amt/sum of Remainin Amt &amp;amp; same for %Not due as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help&lt;/P&gt;&lt;P&gt;stuck for 1 day cmplete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 10:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-expression-using-lt-total-gt-for-calculating-percent/m-p/257824#M495849</guid>
      <dc:creator />
      <dc:date>2012-03-16T10:47:37Z</dc:date>
    </item>
  </channel>
</rss>

