<?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 Add months to salary in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031266#M639808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlik and trying to acomplish the following.&lt;/P&gt;&lt;P&gt;I have a table with employees and year salary's. I also have a master calendar and some other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my master calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14564160798685548" jivemacro_uid="_14564160798685548" modifiedtitle="true"&gt;
&lt;P&gt;minmax:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; date(max(OrderDate)) as MaxDate&lt;/P&gt;
&lt;P&gt;RESIDENT Facttable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vMinDate = Num(makedate($(vDateLimit)));&lt;/P&gt;
&lt;P&gt;LET vMaxDate = Num(peek('MaxDate'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE minmax;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TempCalendar:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;date($(vMinDate) + rowno() -1) as TempDate&lt;/P&gt;
&lt;P&gt;AutoGenerate&lt;/P&gt;
&lt;P&gt;$(vMaxDate) - $(vMinDate) + 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MasterCalendar:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;TempDate As OrderDate,&lt;/P&gt;
&lt;P&gt;'Q-' &amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;/P&gt;
&lt;P&gt;Week(TempDate) As Week,&lt;/P&gt;
&lt;P&gt;Year(TempDate) As Year,&lt;/P&gt;
&lt;P&gt;Month(TempDate) As Month&lt;/P&gt;
&lt;P&gt;resident TempCalendar;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Employees table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14564162394163102 jive_text_macro" jivemacro_uid="_14564162394163102" modifiedtitle="true"&gt;
&lt;P&gt;Employees:&lt;/P&gt;
&lt;P&gt;LOAD EmployeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FullName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Year Salary]&lt;/P&gt;
&lt;P&gt;RESIDENT EmployeesTmp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a new calendar, with the employeeID's, Salary's per month and with them linking to the OrderDate of the mastercalendar. How do i accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 16:04:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-25T16:04:41Z</dc:date>
    <item>
      <title>Add months to salary</title>
      <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031266#M639808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlik and trying to acomplish the following.&lt;/P&gt;&lt;P&gt;I have a table with employees and year salary's. I also have a master calendar and some other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my master calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14564160798685548" jivemacro_uid="_14564160798685548" modifiedtitle="true"&gt;
&lt;P&gt;minmax:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; date(max(OrderDate)) as MaxDate&lt;/P&gt;
&lt;P&gt;RESIDENT Facttable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vMinDate = Num(makedate($(vDateLimit)));&lt;/P&gt;
&lt;P&gt;LET vMaxDate = Num(peek('MaxDate'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE minmax;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TempCalendar:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;date($(vMinDate) + rowno() -1) as TempDate&lt;/P&gt;
&lt;P&gt;AutoGenerate&lt;/P&gt;
&lt;P&gt;$(vMaxDate) - $(vMinDate) + 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MasterCalendar:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;TempDate As OrderDate,&lt;/P&gt;
&lt;P&gt;'Q-' &amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;/P&gt;
&lt;P&gt;Week(TempDate) As Week,&lt;/P&gt;
&lt;P&gt;Year(TempDate) As Year,&lt;/P&gt;
&lt;P&gt;Month(TempDate) As Month&lt;/P&gt;
&lt;P&gt;resident TempCalendar;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Employees table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14564162394163102 jive_text_macro" jivemacro_uid="_14564162394163102" modifiedtitle="true"&gt;
&lt;P&gt;Employees:&lt;/P&gt;
&lt;P&gt;LOAD EmployeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FullName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Year Salary]&lt;/P&gt;
&lt;P&gt;RESIDENT EmployeesTmp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a new calendar, with the employeeID's, Salary's per month and with them linking to the OrderDate of the mastercalendar. How do i accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031266#M639808</guid>
      <dc:creator />
      <dc:date>2016-02-25T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add months to salary</title>
      <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031267#M639809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are the salaries per month for the employees?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031267#M639809</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-25T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add months to salary</title>
      <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031268#M639810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They do not exist yet. I only have a year salary in my source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031268#M639810</guid>
      <dc:creator />
      <dc:date>2016-02-25T16:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add months to salary</title>
      <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031269#M639811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you have to decide how to turn the year salary into month salaries. And which year are we talking about. I didn't see a year field either. Or does the year salary apply to all years for the entire time span in the master calendar? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031269#M639811</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-25T17:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add months to salary</title>
      <link>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031270#M639812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a solution:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It indeed had to go the full span of the master calendar. So first i created a temp table where with iterno() i've generated the 12 months, and after that in the defenitive table the years (also with iterno())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 10:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-months-to-salary/m-p/1031270#M639812</guid>
      <dc:creator />
      <dc:date>2016-03-02T10:29:50Z</dc:date>
    </item>
  </channel>
</rss>

