<?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: To display count of resources filling less than specific hours in resource category in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264008#M518502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ResId 103 and 104 (in excel sheet) are in Cat-B.&lt;/P&gt;&lt;P&gt;In case of &amp;gt;15 hrs the count(ResId) should be 1 which is ResId:103 having total 18 hrs.&lt;/P&gt;&lt;P&gt;I was looking for &amp;lt;15 hrs where ResId 104 of Cat-B would have displayed as count 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 10:57:35 GMT</pubDate>
    <dc:creator>ankurakash</dc:creator>
    <dc:date>2016-11-17T10:57:35Z</dc:date>
    <item>
      <title>To display count of resources filling specific interval of hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264002#M518496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to display - count of resources filling less than specific hours in their specific resource category.&lt;/P&gt;&lt;P&gt;I have attached the sample resource (Excel file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The excel file contains four fields:&lt;/P&gt;&lt;P&gt;ResourceID, Resource Name, Hours, ResCategory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Resource Id is duplicated as the resources have filled hours multiple times in a week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the Resource Id, Total hours against each resource Id and Total Hours for Each ResCategory. However when I try to get data for ResId who have worked less than 15 hours. It's not working for Resource Category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the following in Pivot table:&lt;/P&gt;&lt;P&gt;Dim: &lt;SPAN style="font-size: 13.3333px;"&gt;ResourceID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression1: Total Hours : Sum(Hours)&lt;/P&gt;&lt;P&gt;Expression2: Cat-A_Hrs: Sum({&amp;lt;ResCategory = {'Cat-A'}&amp;gt;}Hours)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Working&lt;/P&gt;&lt;P&gt;Expression2: &lt;SPAN style="font-size: 13.3333px;"&gt;Cat-B_Hrs: Sum({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression3: Cat-B_LT15Hrs: Sum({&amp;lt;ResCategory = {'Cat-B'}, Hours = {'&amp;lt;15'}&amp;gt;}Hours)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // used single and double quotes for "&amp;lt;15" Not giving me the desired result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Requesting Qlikers to help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Ankur&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 02:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264002#M518496</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-17T02:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264003#M518497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this..&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM(Hours)&amp;lt;15"}&amp;gt;}Hours)&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;lt;15"}&amp;gt;}Hours)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 07:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264003#M518497</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-17T07:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264004#M518498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Manish. Both expressions are working well. My apology as I did a mistake while explaining my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of Sum(Hours) it was Count(ResourceID)&lt;/P&gt;&lt;P&gt;and the expressions I wrote were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the following in Pivot table:&lt;/P&gt;&lt;P&gt;Dim: &lt;SPAN style="font-size: 13.33px;"&gt;ResourceID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression1: Total Hours : Sum(Hours)&lt;/P&gt;&lt;P&gt;Expression2: Cat-A_Hrs: Count({&amp;lt;ResCategory = {'Cat-A'}&amp;gt;}&lt;SPAN style="font-size: 13.33px;"&gt;ResourceID&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Working&lt;/P&gt;&lt;P&gt;Expression2: &lt;SPAN style="font-size: 13.33px;"&gt;Cat-B_Hrs: Count({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}&lt;SPAN style="font-size: 13.33px;"&gt;ResourceID&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Expression3: Cat-B_LT15Hrs: Count({&amp;lt;ResCategory = {'Cat-B'}, Hours = {'&amp;lt;15'}&amp;gt;}&lt;SPAN style="font-size: 13.33px;"&gt;ResourceID&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // used single and double quotes for "&amp;lt;15" Not giving me the desired result.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264004#M518498</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-17T08:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264005#M518499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ResourceID?????&lt;/P&gt;&lt;P&gt;You mean ResId?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below expression.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;gt;15"}&amp;gt;}ResId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264005#M518499</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-17T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264006#M518500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the below query but it is not giving the correct result.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;gt;15"}&amp;gt;}ResId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264006#M518500</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-17T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264007#M518501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to your sample data, what could be the output you are looking for?&lt;/P&gt;&lt;P&gt;Can you provide that output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264007#M518501</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-17T09:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264008#M518502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ResId 103 and 104 (in excel sheet) are in Cat-B.&lt;/P&gt;&lt;P&gt;In case of &amp;gt;15 hrs the count(ResId) should be 1 which is ResId:103 having total 18 hrs.&lt;/P&gt;&lt;P&gt;I was looking for &amp;lt;15 hrs where ResId 104 of Cat-B would have displayed as count 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 10:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264008#M518502</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-17T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264009#M518503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For &amp;gt;15 use this&lt;/P&gt;&lt;P&gt;Count(Distinct {&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;gt;15"}&amp;gt;}ResId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &amp;lt;15 use this.&lt;/P&gt;&lt;P&gt;Count(Distinct {&amp;lt;ResCategory = {'Cat-B'}, ResId = {"=SUM({&amp;lt;ResCategory = {'Cat-B'}&amp;gt;}Hours)&amp;lt;15"}&amp;gt;}ResId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 11:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264009#M518503</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-17T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264010#M518504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Manish. it works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 13:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264010#M518504</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-17T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: To display count of resources filling less than specific hours in resource category</title>
      <link>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264011#M518505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried with an alternate method which is working good now: At script level.&lt;/P&gt;&lt;P&gt;based on the attached sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Loading the normal script as attached qvw&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; To get overall slab hours:&lt;/P&gt;&lt;P&gt;At script level added the following script:&lt;/P&gt;&lt;P&gt;-----------------------------------------&lt;BR /&gt;NoConcatenate&lt;BR /&gt;TaskHrs:&lt;BR /&gt;Load&lt;BR /&gt;Function,&lt;BR /&gt;resid,&lt;BR /&gt;Sum(HOURS) as hrs1&lt;BR /&gt;Resident &amp;lt;MainTable&amp;gt;&lt;BR /&gt;Group by &lt;BR /&gt;resid,Function;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Task_Slab_Hrs:&lt;BR /&gt;load&lt;BR /&gt;Function,&lt;BR /&gt;resid,&lt;BR /&gt;hrs1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF((hrs1&amp;gt;=0 and hrs1&amp;lt;=20), '0-20',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF((hrs1&amp;gt;=21 and hrs1&amp;lt;=30), '21-30',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF((hrs1&amp;gt;30 and hrs1&amp;lt;=48), '31-48',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(hrs1&amp;gt; 48, '48+')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )as HOURS_SLAB&lt;BR /&gt;Resident Task_hrs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Task_hrs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at Design level:&lt;/P&gt;&lt;P&gt;---------------------&lt;BR /&gt;piechart:&lt;BR /&gt;Dim: HOURS_SLAB&lt;BR /&gt;Exp:&lt;BR /&gt;=Count({&amp;lt;resid = {"=Sum(hrs1)"}&amp;gt;}resid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 08:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-display-count-of-resources-filling-specific-interval-of-hours/m-p/1264011#M518505</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-11-24T08:29:14Z</dc:date>
    </item>
  </channel>
</rss>

