<?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: Fill Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593326#M596764</link>
    <description>&lt;P&gt;Look at the functions Above(), Below(), Before(), and After(), perhaps you can use them.&lt;/P&gt;&lt;P&gt;However, how do you know what the salary was in Jan, Feb, and March - it could have been 20,000 ? You don't have any previous value to base your decision on...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 00:15:35 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2019-06-19T00:15:35Z</dc:date>
    <item>
      <title>Fill Table</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593246#M596763</link>
      <description>&lt;P&gt;Hi Everybody&lt;BR /&gt;I have a question, this is my scenario:&lt;/P&gt;&lt;P&gt;In my chart table I need to fill rows with information missing&lt;/P&gt;&lt;P&gt;Original&lt;/P&gt;&lt;P&gt;Moth Salary&lt;BR /&gt;ENE&lt;BR /&gt;FEB&lt;BR /&gt;MAR&lt;BR /&gt;ABR $22,000.00&lt;BR /&gt;MAY&lt;BR /&gt;JUN&lt;BR /&gt;JUL&lt;BR /&gt;AGO&lt;BR /&gt;SEP&lt;BR /&gt;OCT&lt;BR /&gt;NOV $24,200.00&lt;BR /&gt;DIC&lt;/P&gt;&lt;P&gt;Target&lt;/P&gt;&lt;P&gt;Moth Salary&lt;BR /&gt;ENE $22,000.00&lt;BR /&gt;FEB $22,000.00&lt;BR /&gt;MAR $22,000.00&lt;BR /&gt;ABR $22,000.00&lt;BR /&gt;MAY $22,000.00&lt;BR /&gt;JUN $22,000.00&lt;BR /&gt;JUL $22,000.00&lt;BR /&gt;AGO $22,000.00&lt;BR /&gt;SEP $22,000.00&lt;BR /&gt;OCT $22,000.00&lt;BR /&gt;NOV $24,200.00&lt;BR /&gt;DIC $24,200.00&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As you can see the information missing should be filled with previous information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593246#M596763</guid>
      <dc:creator>insurfacto</dc:creator>
      <dc:date>2024-11-16T03:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fill Table</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593326#M596764</link>
      <description>&lt;P&gt;Look at the functions Above(), Below(), Before(), and After(), perhaps you can use them.&lt;/P&gt;&lt;P&gt;However, how do you know what the salary was in Jan, Feb, and March - it could have been 20,000 ? You don't have any previous value to base your decision on...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 00:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593326#M596764</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2019-06-19T00:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fill Table</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593356#M596765</link>
      <description>&lt;P&gt;Assuming this is for the load script, and you want to back fill the first few months with the first known value, you could use something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Input:
LOAD *, RowNo() as MonthNum INLINE
[
Month, Salary
	ENE
	FEB
	MAR
	ABR $22,000.00
	MAY
	JUN
	JUL
	AGO
	SEP
	OCT
	NOV $24,200.00
    DIC
];

// Fill down
Temp:
NoConcatenate
LOAD Month,
	If(Len(Salary) = 0, Peek(Salary), Salary) as Salary,
	MonthNum
Resident Input
Order by MonthNum;

// Back fill up
Result:
NoConcatenate
LOAD Month,
	If(Len(Salary) = 0, Peek(Salary), Salary) as Salary,
	MonthNum
Resident Input
Order by MonthNum DESC;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 05:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1593356#M596765</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-06-19T05:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fill Table</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1594264#M596766</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;This solution worked but now I have changed the requirement with the following rules:

There is a table with this record.

1. Consider the date Start_date as labor start or start of month
2. If there are no changes in the salary since we started work to date / Current month with the same salary
3. If the employee has a salary change in the same month, a record must be generated with the same results with the same month
4. If the employee changes roles but retains the same salary as a new record
5. If the employee was discharged and returned to the company should generate only the month / year record in working life, then start again to fill
the table with the records since its new start&lt;BR /&gt;&lt;BR /&gt;Example&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 16:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-Table/m-p/1594264#M596766</guid>
      <dc:creator>insurfacto</dc:creator>
      <dc:date>2019-06-20T16:09:14Z</dc:date>
    </item>
  </channel>
</rss>

