<?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 I need to set a analysis on the script, please help. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057543#M354326</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 asked this question long ago, but the answers were more directed on solving the problem on the dashboard, rather than the script, and at that time I choose to do that, but now the data base has grown a little bit more, and I think it will grow even more, so I need to do this on the script.&lt;/P&gt;&lt;P&gt;The problem is this: Every month I need to count the exact number of employees per user tittle, that are working in the company, this is only the first step to do other calculations, so it need to be accurate. The issue appears when I have more than one user tittle -it should be always only one-, attached for one employee, in those cases I need to see which one of the two has the most working hours and then choose that with the higher work load. for example: "John" is a developer, and has been a developer for almost three months :November, December and January, but "John" gets promoted at the beginning of January to supervisor, so in that month (January), I would have two identical emails for "John", one per each user tittle. What I do here is that I look at the "working hours", and I decide what "Jhon" was based on that, here lets say that "Jhon" reported only 30 hours for developer and the rest of the 160 (that is 130 hours), are reported as supervisor, so under the light of this evidence, the developer "John" would get erased and wont be counted as an employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me, I am attaching the file with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2016 16:07:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-22T16:07:06Z</dc:date>
    <item>
      <title>I need to set a analysis on the script, please help.</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057543#M354326</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 asked this question long ago, but the answers were more directed on solving the problem on the dashboard, rather than the script, and at that time I choose to do that, but now the data base has grown a little bit more, and I think it will grow even more, so I need to do this on the script.&lt;/P&gt;&lt;P&gt;The problem is this: Every month I need to count the exact number of employees per user tittle, that are working in the company, this is only the first step to do other calculations, so it need to be accurate. The issue appears when I have more than one user tittle -it should be always only one-, attached for one employee, in those cases I need to see which one of the two has the most working hours and then choose that with the higher work load. for example: "John" is a developer, and has been a developer for almost three months :November, December and January, but "John" gets promoted at the beginning of January to supervisor, so in that month (January), I would have two identical emails for "John", one per each user tittle. What I do here is that I look at the "working hours", and I decide what "Jhon" was based on that, here lets say that "Jhon" reported only 30 hours for developer and the rest of the 160 (that is 130 hours), are reported as supervisor, so under the light of this evidence, the developer "John" would get erased and wont be counted as an employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me, I am attaching the file with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 16:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057543#M354326</guid>
      <dc:creator />
      <dc:date>2016-01-22T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: I need to set a analysis on the script, please help.</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057544#M354327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesus, could you send us the data source? (Roles desde Tenrox.xls)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or a sample of this?&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;Hola, podrías mandarnos una muestra del excel, creo que se como puedes calcular eso.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 17:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057544#M354327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-22T17:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: I need to set a analysis on the script, please help.</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057545#M354328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis only works in chart expressions. It cannot be used in the script. You'll have to calculate the max month per employee and then for each max month determine the max hours. You can flag those records with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN&amp;nbsp; (Tablaroles)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; u.EMAILADDRESS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; max(mestenrox) as&amp;nbsp; mestenrox,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as IsMax_mestenrox&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tablaroles&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.EMAILADDRESS&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Tablaroles)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.EMAILADDRESS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; mestenrox,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IsMax_mestenrox,&lt;/P&gt;&lt;P&gt;&amp;nbsp; max([Total Horas]) as [Total Horas],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as IsMax_Total_horas&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tablaroles&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; IsMax_mestenrox =1&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.EMAILADDRESS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; mestenrox,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IsMax_mestenrox&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2016 18:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057545#M354328</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-24T18:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need to set a analysis on the script, please help.</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057546#M354329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found your other thread just a while ago. Let me post your example app here, too, with the proposed solution. It's not exactly same as the one you have attached here but in principle the problem stays the same. So the solution should also apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Artur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-to-set-a-analysis-on-the-script-please-help/m-p/1057546#M354329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T14:45:16Z</dc:date>
    </item>
  </channel>
</rss>

