<?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: Sample Data Based on Condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360511#M417061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help to resolve the issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 04:58:34 GMT</pubDate>
    <dc:creator>pra_kale</dc:creator>
    <dc:date>2017-05-31T04:58:34Z</dc:date>
    <item>
      <title>Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360504#M417054</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 attached one sample file. From this file for each policies i want 5 such members which are having maximum Sum Assured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below given is the required out_put...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Policy_No&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Status&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Member_No&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;SumAssured&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;RD&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;234&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;57000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;57000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;56000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;DH&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;32000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2222&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;31000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2365554&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;RD&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;321&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;94000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2365554&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;333&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;90000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2365554&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;RD&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;123&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;87000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2365554&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;87000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2365554&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;DH&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;222&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;85000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;146789&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;101&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;100000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;146789&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;104&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;100000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;146789&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;103&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;99999&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;146789&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;106&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;84756&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;146789&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;IF&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;102&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;56897&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to get the desired result.&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>Tue, 30 May 2017 13:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360504#M417054</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-30T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360505#M417055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(SumAssured)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Naamloos.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165214_Naamloos.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 13:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360505#M417055</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-05-30T13:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360506#M417056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want only 5 members from each policies which are having maximum sum assured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 13:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360506#M417056</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-30T13:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360507#M417057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I misunderstood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about this: use&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14961541180056629" jivemacro_uid="_14961541180056629"&gt;
&lt;P&gt;Aggr(Rank(Aggr(Sum(SumAssured), Policy_No, Member_No), Member_No), Policy_No, Member_No)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;to find the rank of the member within its policy, and then using an if-statement, show just ranks 1-5 in your chart.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="165242" alt="Naamloos.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165242_Naamloos.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360507#M417057</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-05-30T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360508#M417058</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;Thanks Ronald for your help..It is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pl put the code in body as i can not open your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360508#M417058</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-30T14:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360509#M417059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1496156043331966" jivemacro_uid="_1496156043331966"&gt;
&lt;P&gt;=If(&lt;/P&gt;
&lt;P&gt;Aggr(Rank(Aggr(Sum(SumAssured), Policy_No, Member_No), Member_No), Policy_No, Member_No)&amp;gt;5,&lt;/P&gt;
&lt;P&gt;Null(),&lt;/P&gt;
&lt;P&gt;Aggr(Rank(Aggr(Sum(SumAssured), Policy_No, Member_No), Member_No), Policy_No, Member_No)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360509#M417059</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-05-30T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360510#M417060</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;Thanks Ronald..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I am having a very large data set around 25 lacs. So whether it is possible we can do this at a script level. So at the end i will store data through STORE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 15:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360510#M417060</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-30T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360511#M417061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help to resolve the issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 04:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360511#M417061</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-31T04:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360512#M417062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way on script-level could be to use &lt;A href="https://community.qlik.com/docs/DOC-9314"&gt;Peek() or Previous() ?&lt;/A&gt; in a sorted load to flag the records - maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if(Policy_No = previous(Policy_No), &lt;STRONG&gt;peek('MaxFlag')&lt;/STRONG&gt; + 1, 1) as MaxFlag&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;load *, if(Policy_No = previous(Policy_No), MaxFlag + 1, 1) as MaxFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident Source order by Policy_No, SumAssured;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and within your dimensions/expressions you could use this flag like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(MaxFlag &amp;lt; 6, Policy_No, null()) // dimension&lt;/P&gt;&lt;P&gt;sum({&amp;lt; MaxFlag = {"&amp;lt;6"}&amp;gt;} SumAssured) // expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 05:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360512#M417062</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-31T05:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360513#M417063</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;Thanks Marcus for your very quick help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting below given out-put after applying your condition.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="560"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="69"&gt;Policy_No&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="45"&gt;Status&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="85"&gt;Member_No&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="219"&gt;=if(MaxFlag&lt;BR /&gt;&amp;nbsp; &amp;lt; 6, Policy_No, null())&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="58"&gt;MaxFlag&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="84"&gt;SumAssured&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;DH&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;332&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;DH&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;226&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;IF&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;120&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;65132&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;IF&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;65132&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;IF&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;220&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;80000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as I want Top 5 members on the basis of Maximum Sum Assured per policy wise. Means Max flag should be on the basis of Sum Assured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Eg. In the case of same policy I want below given out-put..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="341"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="69"&gt;Policy_No&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="84"&gt;SumAssured&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="85"&gt;Member_No&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="45"&gt;Status&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="58"&gt;MaxFlag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;85000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;222&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;DH&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;87000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;RD&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;87000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;124&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;IF&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;90000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;333&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;IF&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2365554&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;94000&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;321&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;RD&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 05:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360513#M417063</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-31T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360514#M417064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with changing the sort-order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if(Policy_No = previous(Policy_No), peek('MaxFlag') + 1, 1) as MaxFlag&lt;/P&gt;&lt;P&gt;resident Source order by Policy_No, SumAssured &lt;STRONG style="text-decoration: underline;"&gt;desc&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 06:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360514#M417064</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-31T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360515#M417065</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;Marcus You are too good...It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want to ask one thing whether it is possible to do this completely at back-end. Means without creating Calculated Dimension and expression. So at end of the script we will just use STORE command and required data get's stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Once Again for your Help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 09:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360515#M417065</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-31T09:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360516#M417066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export:&lt;/P&gt;&lt;P&gt;load * where MaxFlag &amp;lt; 6;&lt;/P&gt;&lt;P&gt;load *, if(Policy_No = previous(Policy_No), peek('MaxFlag') + 1, 1) as MaxFlag&lt;/P&gt;&lt;P&gt;resident Source order by Policy_No, SumAssured &lt;STRONG style="text-decoration: underline;"&gt;desc&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;store export into export.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 10:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360516#M417066</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-31T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Data Based on Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360517#M417067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus...It is working fine.. Great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 12:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Data-Based-on-Condition/m-p/1360517#M417067</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2017-05-31T12:55:08Z</dc:date>
    </item>
  </channel>
</rss>

