<?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: sum hours Under terms in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276640#M103184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi avivcoil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two more ideas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the expression to be not influenced by selections (which I assume), you should change the set expression to e.g.&lt;/P&gt;&lt;P&gt;=avg({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;cumHour ={"&amp;lt;=$(H_Train) &amp;gt;$(H_first)"}&amp;gt;} Eff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I noticed that the hours are fluctuating from date to date. It might be an idea to use a weighted average for efficiency or to use the original calculation for efficiency (which is probably something per time slice) instead.&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>Wed, 13 Jul 2011 13:43:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-07-13T13:43:15Z</dc:date>
    <item>
      <title>sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276635#M103179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some tips around here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls see attach file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I have an employee named "roy" who worked in some days&amp;nbsp; within&amp;nbsp; the month "may".&lt;/P&gt;&lt;P&gt;He have &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Efficiency&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;Index for every shift.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;In the 15/05/2011 he had a &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Training&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;Course.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;I need to have a table with one row and three columns:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;1-Emp' name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;2- &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Efficiency&lt;/SPAN&gt; in 4 shifts before the &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Training&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;Course.(avg)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;3- &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Efficiency&lt;/SPAN&gt; in 4 shifts after&amp;nbsp;&amp;nbsp; the &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Training&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;Course.(avg)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Thanx a lot guys!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 07:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276635#M103179</guid>
      <dc:creator />
      <dc:date>2011-07-13T07:34:26Z</dc:date>
    </item>
    <item>
      <title>sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276636#M103180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; someone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276636#M103180</guid>
      <dc:creator />
      <dc:date>2011-07-13T10:33:08Z</dc:date>
    </item>
    <item>
      <title>sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276637#M103181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi avivcoil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use a set expression to limit the dates, like&lt;/P&gt;&lt;P&gt;=avg({$&amp;lt;date ={"&amp;lt;=$(V_Train)"}&amp;gt;} eff) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the dates before and including the training day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;=avg({$&amp;lt;date ={"&amp;gt;$(V_Train)"}&amp;gt;} eff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the period after the training day (both expression as expression in a chart straight table, dimension = name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had some difficulties applying to your example, please assure that the "date" is really a date format (I think right now it is a text) before comparing to the variable (and this variable should also be set as date using makedate).&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>Wed, 13 Jul 2011 10:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276637#M103181</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-13T10:54:26Z</dc:date>
    </item>
    <item>
      <title>sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276638#M103182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats what I was looking for.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right,I also have a problem with the the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I may need something even more difficult...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still&amp;nbsp; need the same table - i.e. avg e&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;fficiency,&lt;/SPAN&gt; &lt;/SPAN&gt; but now&amp;nbsp; calculate it a bit diffrent.&lt;/P&gt;&lt;P&gt;The calculation methed will be:&lt;/P&gt;&lt;P&gt;a-&lt;STRONG&gt;before &lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;the training,go back and calc' for the last 30&amp;nbsp;&amp;nbsp; (before the training) hours whats was the Eff.&lt;/P&gt;&lt;P&gt;b-&lt;STRONG&gt;after &lt;/STRONG&gt;the training,calc'&amp;nbsp; the next 30 hours&amp;nbsp; (after the training) whats was the Eff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you still think its possiable....?&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276638#M103182</guid>
      <dc:creator />
      <dc:date>2011-07-13T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276639#M103183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi avivcoil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hmmmm, yes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least I tried in attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my approach:&lt;/P&gt;&lt;P&gt;I used a accumulated hour to have something like a consecutive timeline for orientation (like date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set three variables = cumHour at the time of traing, 30 h before and 30 h after (It was again not quite clear how to handle the day of training, because you got also hours for that day, count them to before or after training?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used set expression again to get only the eff values within the desired hour range (But with some jitter how to handle the dates hours at the border of these ranges).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe some room for improvement, but my idea should be clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 12:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276639#M103183</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-13T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276640#M103184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi avivcoil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two more ideas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the expression to be not influenced by selections (which I assume), you should change the set expression to e.g.&lt;/P&gt;&lt;P&gt;=avg({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;cumHour ={"&amp;lt;=$(H_Train) &amp;gt;$(H_first)"}&amp;gt;} Eff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I noticed that the hours are fluctuating from date to date. It might be an idea to use a weighted average for efficiency or to use the original calculation for efficiency (which is probably something per time slice) instead.&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>Wed, 13 Jul 2011 13:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276640#M103184</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-13T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: sum hours Under terms</title>
      <link>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276641#M103185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; GREAT !&amp;nbsp; &lt;/P&gt;&lt;P&gt;Really nice, I have learned some tricks here!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 06:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-hours-Under-terms/m-p/276641#M103185</guid>
      <dc:creator />
      <dc:date>2011-07-14T06:22:28Z</dc:date>
    </item>
  </channel>
</rss>

