<?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: Total Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607748#M1104588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks gysbert for the response but I have to correct myself both divisions are in the same file not apart so thats the reason you can split them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the count distinct of weekdays gives me 5 voor division 1 and 5&amp;nbsp; for division 2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 13:27:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-21T13:27:55Z</dc:date>
    <item>
      <title>Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607746#M1104586</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;&lt;BR /&gt;I got the headbreaking task of calculating the average per week of cars we used in division 1 and 2.&lt;/P&gt;&lt;P&gt;As you can see below this the total of cars we used per day and total per week.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="55563" alt="trucks.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55563_trucks.png" style="width: 620px; height: 441px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;Now I first want a calculation that will count the number of days cars have been used. Like:&lt;/P&gt;&lt;P&gt;Week 1 - 3 days&lt;/P&gt;&lt;P&gt;Week 2 - 5 days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc&lt;/P&gt;&lt;P&gt;This is so&amp;nbsp; I can divide the total and get the average per week. (Avg formula works but is another&amp;nbsp; way possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;Secondly I need those 2 totals of division 1 and 2 to be the total in column 3 so I can see the overall number of average cars per week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-:&amp;gt; The big problem is these 2 divsions are in the same table(file) so when I would give in DivisionName -&amp;gt; 1 it will show me 2 columns 1 for the divion and the other 1 empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;BR /&gt;sum ({&amp;lt;PerformanceWeekday = {'mo','tu','we','th','fr'}&amp;gt;}counterTrucksDay1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607746#M1104586</guid>
      <dc:creator />
      <dc:date>2014-03-21T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607747#M1104587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. count(distinct PerformanceWeekday) should return the number of days in a week. So divide by that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Enable partial sums for the DivisionName dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Load both division files into the same table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DivisionData:&lt;/P&gt;&lt;P&gt;load *, 'Division1' as Source from division1source;&lt;/P&gt;&lt;P&gt;concatenate(DivisionData)&lt;/P&gt;&lt;P&gt;load *, 'Division2' as Source from division2source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607747#M1104587</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-21T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607748#M1104588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks gysbert for the response but I have to correct myself both divisions are in the same file not apart so thats the reason you can split them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the count distinct of weekdays gives me 5 voor division 1 and 5&amp;nbsp; for division 2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Problem/m-p/607748#M1104588</guid>
      <dc:creator />
      <dc:date>2014-03-21T13:27:55Z</dc:date>
    </item>
  </channel>
</rss>

