<?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: Unable to sort Ukey in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71240#M785247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know how to Flag =1 when occurance is one . Highlight in red .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But zero where occurance is twice , say 849 compare previous row 849 then flag 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Flag.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195648_Flag.PNG" style="height: 302px; width: 620px;" /&gt;&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, 08 Mar 2018 07:17:46 GMT</pubDate>
    <dc:creator>suvechha_b</dc:creator>
    <dc:date>2018-03-08T07:17:46Z</dc:date>
    <item>
      <title>Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71237#M785244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp; All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to sort the Ukey field ..please assist. samplemodel attached.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195647_Sort.PNG" style="height: 319px; width: 620px;" /&gt;&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/Unable-to-sort-Ukey/m-p/71237#M785244</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71238#M785245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is sorted properly just promote you Ukey to above position and check ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 06:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71238#M785245</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T06:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71239#M785246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 06:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71239#M785246</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T06:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71240#M785247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know how to Flag =1 when occurance is one . Highlight in red .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But zero where occurance is twice , say 849 compare previous row 849 then flag 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Flag.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195648_Flag.PNG" style="height: 302px; width: 620px;" /&gt;&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, 08 Mar 2018 07:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71240#M785247</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71241#M785248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Count(previ....)&amp;gt;1,0,1)&amp;nbsp; as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;from table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Group by fields;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 07:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71241#M785248</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T07:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71242#M785249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello P M ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the count and group by is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71242#M785249</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T08:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71243#M785250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hello P M ,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;the count and group by is not working&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;sample attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71243#M785250</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T08:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71244#M785251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what error you are facing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71244#M785251</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71245#M785252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am getting Flag as all 0. please kindly see the sample model.&lt;/SPAN&gt;&lt;IMG alt="Flag0.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195655_Flag0.PNG" style="font-size: 10pt; height: 434px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71245#M785252</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71246#M785253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenUser_final3":&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;DateJoinKeyPL,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; deal1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid, &lt;/P&gt;&lt;P&gt; if(count(previousdealid)&amp;gt;1,1,0) as FlagLateststate&lt;/P&gt;&lt;P&gt;Resident "OpenUser_final2" &lt;/P&gt;&lt;P&gt;GROUP BY DateJoinKeyPL,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; deal1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or please share some sample data ....&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71246#M785253</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71247#M785254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI PM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its still not working ,&lt;/P&gt;&lt;P&gt;I did some change and create UniqueKey (UK) with the Date and previousdealid .&lt;/P&gt;&lt;P&gt;and tried your script .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"OpenUser_final4":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UK,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateJoinKeyPL,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; deal1,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(count(UK)&amp;gt;1,0,1) as FlagLateststate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident "OpenUser_final3" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;GROUP BY UK,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateJoinKeyPL,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; deal1,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But still not Flag is correct . Sample model attached. Please kindly assist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;See the outcome table .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Req.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195664_Req.PNG" style="height: 406px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71247#M785254</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71248#M785255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On which field you want to do Flag ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OpenUser_final3":&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateJoinKeyPL, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; deal1, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count(&lt;STRONG&gt;previkey&lt;/STRONG&gt;)&amp;gt;1,1,0) as FlagLateststate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident "OpenUser_final2"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY DateJoinKeyPL, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; deal1, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealnm1,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousdealid;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;please share sample qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71248#M785255</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2018-03-08T10:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71249#M785256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did provide you sample model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to compare the value of same field by previous ()&lt;/P&gt;&lt;P&gt;if values match with the previous then flag 0 else 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Req.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195675_Req.PNG" style="height: 406px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71249#M785256</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T10:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort Ukey</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71250#M785257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count is not working as because qlikview is treating the two highlighted row as two different rows . Which is not correct to my requriement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Req1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195677_Req1.PNG" style="height: 404px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-sort-Ukey/m-p/71250#M785257</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2018-03-08T10:32:55Z</dc:date>
    </item>
  </channel>
</rss>

