<?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 Medium: Ratio for Foreign worker in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217121#M70370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rajesh,&lt;BR /&gt;Actually is data is simple.&lt;/P&gt;&lt;P&gt;Loading from MySQL database.&lt;BR /&gt;It just like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;No_ as EE,&lt;BR /&gt;Employment Date as EmployDate,&lt;BR /&gt;Resignation Date as ResignDate,&lt;BR /&gt;Termination Date as TerminDate,&lt;BR /&gt;Inactive Date as InactvDate&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ENSURE.dbo."SQLDATABASE$Employee"&lt;BR /&gt;where ("No_" Between '2' and '5999');&lt;/P&gt;&lt;P&gt;Someone can help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 04:17:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-20T04:17:50Z</dc:date>
    <item>
      <title>Medium: Ratio for Foreign worker</title>
      <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217119#M70368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;BR /&gt;I really need help this condition with your expertise.&lt;BR /&gt;My company required me to do ratio for Foreign Worker.&lt;BR /&gt;Our company can hire/recruit foreign worker base from local worker ratio.&lt;BR /&gt;So the ratio should be like this:&lt;BR /&gt;&lt;BR /&gt; Local Worker= 1&lt;BR /&gt; Foreign Worker= 7&lt;BR /&gt; Ratio= 1:7&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And company have 3 type of industry:&lt;BR /&gt;&lt;BR /&gt; Construction (Local= 5, NTS worker= 35)&lt;BR /&gt; Marine (Local= 2, NTS worker= 14)&lt;BR /&gt; Maintenance (Local= 10, NTS worker= 70)&lt;BR /&gt;&lt;BR /&gt;Ratio will be taken from excel, reason easy to modify just in case there change ratio.&lt;BR /&gt;Each individual local worker will able starting contributing when after 3 month (not day) from employed date e.g. sample local employe below:&lt;BR /&gt;&lt;BR /&gt;Status: Inactive&lt;BR /&gt;Name: Micheal Doe&lt;BR /&gt;EmploytDate: 15-02-2009&lt;BR /&gt;TerminationDate: 30-07-2009&lt;BR /&gt;*Contribute since xx-05-2009 until xx-10-2009 (No longer contribute)&lt;BR /&gt;&lt;BR /&gt;Status: Inactive&lt;BR /&gt;Name: John Smith&lt;BR /&gt;EmployDate: 21-01-2008&lt;BR /&gt;ResignDate: 30-02-2010&lt;BR /&gt;*Contribute since xx-04-2008 until xx-06-2010 (Still-contribute)&lt;BR /&gt;&lt;BR /&gt;Status: Inactive&lt;BR /&gt;Name: Marco Seth&lt;BR /&gt;EmployDate: 08-02-2009&lt;BR /&gt;ResignDate: 30-04-2010&lt;BR /&gt;*Contribute since xx-05-2009 until xx-07-2010 (still-contribute)&lt;BR /&gt;&lt;BR /&gt;Status: Active&lt;BR /&gt;Name: Smith White&lt;BR /&gt;EmployDate: 12-08-2009&lt;BR /&gt;*Contribute since xx-11-2009 until preset&lt;BR /&gt;&lt;BR /&gt;Status: Active&lt;BR /&gt;Name: Catherine&lt;BR /&gt;EmployDate: 01-04-2010&lt;BR /&gt;*Non-active-Contribute&lt;BR /&gt;*Contribute will start at xx-07-2010&lt;BR /&gt;&lt;BR /&gt;TodayDate: 18-04-2010&lt;BR /&gt;&lt;BR /&gt;Case like John and Marco still contribute even they still counts 3months after resign date or termination date.&lt;BR /&gt;&lt;BR /&gt;Company did not see base on date but on 3 month.&lt;BR /&gt;And this 3 months not probation period, even probation period extended to 4month-6month not effected, still 3 month.&lt;BR /&gt;&lt;BR /&gt;And we need to know each month table, how many total foreign worker company can available can recruit.&lt;/P&gt;&lt;P&gt;Such like this:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Industry |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec|&lt;BR /&gt;-------------------------------------------------------------&lt;BR /&gt;Construction |&lt;BR /&gt;Marine |&lt;BR /&gt;Maintenance |&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and my script look like this&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='DD-MM-YYYY';&lt;BR /&gt;SET TimestampFormat='DD-MMM-YYYY hh:mm:ss[.fff] TT';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;SET Num='';&lt;BR /&gt;SET MONTH='MMM';&lt;BR /&gt;&lt;BR /&gt;LET CurrentDate = Date(today(0));&lt;BR /&gt;LET CurrentMonth = Month(today(0));&lt;BR /&gt;LET CurrentYear = Year(today(0));&lt;BR /&gt;&lt;BR /&gt;Employee:&lt;BR /&gt;LOAD&lt;BR /&gt; "No_" as EE,&lt;BR /&gt; "First Name",&lt;BR /&gt; Date("Employment Date") as EmployDate,&lt;BR /&gt; Month("Employment Date") as EmpMonth,&lt;BR /&gt; Year("Employment Date") as EmpYear,&lt;BR /&gt;&lt;BR /&gt; Date("Termination Date") as TerminDate,&lt;BR /&gt; Month("Termination Date") as TerminMonth,&lt;BR /&gt; Year("Termination Date") as TerminYear,&lt;BR /&gt;&lt;BR /&gt; Date("Resignation Date") as ResignDate,&lt;BR /&gt; Month("Resignation Date") as ResignMonth,&lt;BR /&gt; Year("Resignation Date") as ResignYear;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM ENSURE.dbo."DATABASE$Employee"&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 18:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217119#M70368</guid>
      <dc:creator />
      <dc:date>2010-04-17T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Medium: Ratio for Foreign worker</title>
      <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217120#M70369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;If you could attach a sample application with some data that will be great.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 07:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217120#M70369</guid>
      <dc:creator />
      <dc:date>2010-04-19T07:38:36Z</dc:date>
    </item>
    <item>
      <title>Medium: Ratio for Foreign worker</title>
      <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217121#M70370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rajesh,&lt;BR /&gt;Actually is data is simple.&lt;/P&gt;&lt;P&gt;Loading from MySQL database.&lt;BR /&gt;It just like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;No_ as EE,&lt;BR /&gt;Employment Date as EmployDate,&lt;BR /&gt;Resignation Date as ResignDate,&lt;BR /&gt;Termination Date as TerminDate,&lt;BR /&gt;Inactive Date as InactvDate&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ENSURE.dbo."SQLDATABASE$Employee"&lt;BR /&gt;where ("No_" Between '2' and '5999');&lt;/P&gt;&lt;P&gt;Someone can help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 04:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217121#M70370</guid>
      <dc:creator />
      <dc:date>2010-04-20T04:17:50Z</dc:date>
    </item>
    <item>
      <title>Medium: Ratio for Foreign worker</title>
      <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217122#M70371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;Herewith i have attached the application for your reference. Pls post me if you find any difficulties.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 06:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217122#M70371</guid>
      <dc:creator />
      <dc:date>2010-04-20T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Medium: Ratio for Foreign worker</title>
      <link>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217123#M70372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;BR /&gt;I still find difficulties...&lt;/P&gt;&lt;P&gt;Anyone can help about this? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Frenky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Medium-Ratio-for-Foreign-worker/m-p/217123#M70372</guid>
      <dc:creator />
      <dc:date>2010-04-20T11:30:28Z</dc:date>
    </item>
  </channel>
</rss>

