<?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: Count Work Hours in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802903#M303</link>
    <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    Date, Team, Hr 01, Hr 02, Hr 03, Hr 04, Hr 05, Hr 06, Hr 07, Hr 08, Hr 09, Hr 10, Hr 11, Hr 12, Hr 13
    4/22/2021, Team 41, 175, 230, 200, 230, 0, 0, 0, 170, 0, 0, 0, 0, 0
    4/22/2021, Team 42, 175, 230, 200, 230, 0, 170, 0, 0, 0, 0, 0, 0, 0
    4/22/2021, Team 43, 175, 230, 200, 230, 0, 0, 0, 170, 0, 0, 0, 0, 170
];

Left Join(tab1)
LOAD Date, Team,
	Pick(Match(-1,[Hr 13] &amp;gt; 0,[Hr 12] &amp;gt; 0,[Hr 11] &amp;gt; 0,[Hr 10] &amp;gt; 0,[Hr 09] &amp;gt; 0
				,[Hr 08] &amp;gt; 0,[Hr 07] &amp;gt; 0,[Hr 06] &amp;gt; 0,[Hr 05] &amp;gt; 0,[Hr 06] &amp;gt; 0
				,[Hr 05] &amp;gt; 0,[Hr 04] &amp;gt; 0,[Hr 03] &amp;gt; 0,[Hr 02] &amp;gt; 0,[Hr 09] &amp;gt; 0),
				13,12,11,10,9,8,7,6,5,4,3,2,1) As [Hours Worked]
Resident tab1;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 27 Apr 2021 02:43:42 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-04-27T02:43:42Z</dc:date>
    <item>
      <title>Count Work Hours</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802663#M302</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below table with Fields of Date, Team, Hour 01, Hour 02,&amp;nbsp; &amp;nbsp;....... up to Hour 13 . (Hour 01 Contains the Output of First hour)&lt;/P&gt;&lt;P&gt;As per the below i need to calculate the Worked Hours as 8. (Biggest&amp;nbsp; Hour that works in a Day as the&amp;nbsp; worked Hours)&lt;/P&gt;&lt;P&gt;(In the Middle Hr 05, Hr 06 likewise can be Zero due to Breakdowns and Etc)&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nuwanh_0-1619438850561.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53688i9E114CB9413A2D58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nuwanh_0-1619438850561.png" alt="nuwanh_0-1619438850561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 12:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802663#M302</guid>
      <dc:creator>nuwanhwb87</dc:creator>
      <dc:date>2021-04-26T12:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Work Hours</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802903#M303</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    Date, Team, Hr 01, Hr 02, Hr 03, Hr 04, Hr 05, Hr 06, Hr 07, Hr 08, Hr 09, Hr 10, Hr 11, Hr 12, Hr 13
    4/22/2021, Team 41, 175, 230, 200, 230, 0, 0, 0, 170, 0, 0, 0, 0, 0
    4/22/2021, Team 42, 175, 230, 200, 230, 0, 170, 0, 0, 0, 0, 0, 0, 0
    4/22/2021, Team 43, 175, 230, 200, 230, 0, 0, 0, 170, 0, 0, 0, 0, 170
];

Left Join(tab1)
LOAD Date, Team,
	Pick(Match(-1,[Hr 13] &amp;gt; 0,[Hr 12] &amp;gt; 0,[Hr 11] &amp;gt; 0,[Hr 10] &amp;gt; 0,[Hr 09] &amp;gt; 0
				,[Hr 08] &amp;gt; 0,[Hr 07] &amp;gt; 0,[Hr 06] &amp;gt; 0,[Hr 05] &amp;gt; 0,[Hr 06] &amp;gt; 0
				,[Hr 05] &amp;gt; 0,[Hr 04] &amp;gt; 0,[Hr 03] &amp;gt; 0,[Hr 02] &amp;gt; 0,[Hr 09] &amp;gt; 0),
				13,12,11,10,9,8,7,6,5,4,3,2,1) As [Hours Worked]
Resident tab1;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802903#M303</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-04-27T02:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Work Hours</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802905#M304</link>
      <description>&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV65.PNG" style="width: 585px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53763i98BEB945EFCADFEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV65.PNG" alt="commQV65.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Count-Work-Hours/m-p/1802905#M304</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-04-27T02:44:09Z</dc:date>
    </item>
  </channel>
</rss>

