<?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 drag up data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/drag-up-data/m-p/237983#M88964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning everyone. I have a problem in calculating data under this situation:&lt;/P&gt;&lt;P&gt;I have 2 sets of data: One set have information for every single month. And another set only have 3 to 4 months data per year (monthly data). I want to multiply data according to month. If there is any missing data in any month, I will use the any avaible data before that.&lt;/P&gt;&lt;P&gt;Example: Data Set A has data 12, 13, 15 for Jan, Feb, March&lt;/P&gt;&lt;P&gt;Data Set B has data 0.5, X , 0.17 for Jan, Feb, March&lt;/P&gt;&lt;P&gt;In order to calculate Feb, I will use data from Jan (0.5) for Feb.&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;1. I have no idea how to do it;&lt;/P&gt;&lt;P&gt;2. There is no pattern in missing data. So, if I miss out 3 months data, I will use data 4 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2009 15:35:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-11T15:35:00Z</dc:date>
    <item>
      <title>drag up data?</title>
      <link>https://community.qlik.com/t5/QlikView/drag-up-data/m-p/237983#M88964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning everyone. I have a problem in calculating data under this situation:&lt;/P&gt;&lt;P&gt;I have 2 sets of data: One set have information for every single month. And another set only have 3 to 4 months data per year (monthly data). I want to multiply data according to month. If there is any missing data in any month, I will use the any avaible data before that.&lt;/P&gt;&lt;P&gt;Example: Data Set A has data 12, 13, 15 for Jan, Feb, March&lt;/P&gt;&lt;P&gt;Data Set B has data 0.5, X , 0.17 for Jan, Feb, March&lt;/P&gt;&lt;P&gt;In order to calculate Feb, I will use data from Jan (0.5) for Feb.&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;1. I have no idea how to do it;&lt;/P&gt;&lt;P&gt;2. There is no pattern in missing data. So, if I miss out 3 months data, I will use data 4 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 15:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drag-up-data/m-p/237983#M88964</guid>
      <dc:creator />
      <dc:date>2009-11-11T15:35:00Z</dc:date>
    </item>
    <item>
      <title>drag up data?</title>
      <link>https://community.qlik.com/t5/QlikView/drag-up-data/m-p/237984#M88965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have only half of a solution, which works for 2 missing entries, if there are 3, you need to add one more preceding loop.&lt;BR /&gt;Probably one has a better idea, how to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET_A:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; M, Val1&lt;BR /&gt; a, 12&lt;BR /&gt; b, 13&lt;BR /&gt; c, 15&lt;BR /&gt; d, 11&lt;BR /&gt; e, 10&lt;BR /&gt; f, 8&lt;BR /&gt; g, 7&lt;BR /&gt; h, 14&lt;BR /&gt; i, 15&lt;BR /&gt; j, 12];&lt;BR /&gt;&lt;BR /&gt;SET_B:&lt;BR /&gt; JOIN LOAD * INLINE [&lt;BR /&gt; M, Val2&lt;BR /&gt; a, 0.5&lt;BR /&gt; b, 0.3&lt;BR /&gt; c, x&lt;BR /&gt; d, 0.4&lt;BR /&gt; e, x&lt;BR /&gt; f, x&lt;BR /&gt; g, 0.5&lt;BR /&gt; h, 0.6&lt;BR /&gt; i, 0.4&lt;BR /&gt; j, 0.5];&lt;BR /&gt;&lt;BR /&gt;SET:&lt;BR /&gt; NOCONCATENATE&lt;BR /&gt; LOAD&lt;BR /&gt; M,&lt;BR /&gt; Val1,&lt;BR /&gt; IF(Val2 = 'x', PREVIOUS(Val2), Val2) AS Val2;&lt;BR /&gt; LOAD&lt;BR /&gt; M,&lt;BR /&gt; Val1,&lt;BR /&gt; IF(Val2 = 'x', PREVIOUS(Val2), Val2) AS Val2&lt;BR /&gt; RESIDENT&lt;BR /&gt; SET_A&lt;BR /&gt; ORDER BY&lt;BR /&gt; M ASC;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE SET_A;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Nov 2009 02:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drag-up-data/m-p/237984#M88965</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-15T02:55:50Z</dc:date>
    </item>
  </channel>
</rss>

