<?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: Generating data for missing rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311153#M833698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above is provided your data is sorted by Cruise and Rating &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you have to use order by on a Resident load as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD Cruise, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rating,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowno() as ID&lt;/P&gt;&lt;P&gt;FROM &amp;lt;&amp;lt;YourSource&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Cruise, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(len(trim(Rating))&amp;lt;1,if(Cruise = Previous(Cruise),peek(Rating),Rating),Rating) as Rating,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; table1&lt;/P&gt;&lt;P&gt;Order by Cruise,Rating DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 11:31:48 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-06-05T11:31:48Z</dc:date>
    <item>
      <title>Generating data for missing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311150#M833695</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 have a data set in which data is missing in some rows in Rating column. Some data is unique whereas some data is repeating. I want to fill the repeating data with the same values in each row and leave the unique values as it is because there is no mapping for the unique values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : There is a blank cell for Star Cruise, I want to fill it with 4 whereas for Aquafina I wish to leave it blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, its very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311150#M833695</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating data for missing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311151#M833696</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;May be like this (look attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD*Inline&lt;/P&gt;&lt;P&gt;[Cruise, Rating&lt;/P&gt;&lt;P&gt;Star Cruise, 4&lt;/P&gt;&lt;P&gt;Star Cruise,&lt;/P&gt;&lt;P&gt;Star Cruise, 4&lt;/P&gt;&lt;P&gt;Star Cruise, 4&lt;/P&gt;&lt;P&gt;Aquafina Lego,&lt;/P&gt;&lt;P&gt;Malaysian, 3&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian,&lt;/P&gt;&lt;P&gt;Malaysian, 3];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Cruise,&lt;/P&gt;&lt;P&gt;Max(Rating) as MaxRating&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group By Cruise;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Cruise,&lt;/P&gt;&lt;P&gt;MaxRating&lt;/P&gt;&lt;P&gt;Resident Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165771_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311151#M833696</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-06-05T11:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generating data for missing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311152#M833697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just this would suffice i believe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Cruise, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(len(trim(Rating))&amp;lt;1,if(Cruise = Previous(Cruise),peek(Rating),Rating),Rating) as Rating,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowno() as ID&lt;/P&gt;&lt;P&gt;From XXXXxxxx;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311152#M833697</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-05T11:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Generating data for missing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311153#M833698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above is provided your data is sorted by Cruise and Rating &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you have to use order by on a Resident load as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD Cruise, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rating,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowno() as ID&lt;/P&gt;&lt;P&gt;FROM &amp;lt;&amp;lt;YourSource&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Cruise, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(len(trim(Rating))&amp;lt;1,if(Cruise = Previous(Cruise),peek(Rating),Rating),Rating) as Rating,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; table1&lt;/P&gt;&lt;P&gt;Order by Cruise,Rating DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-data-for-missing-rows/m-p/1311153#M833698</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-05T11:31:48Z</dc:date>
    </item>
  </channel>
</rss>

