<?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 Need assistance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-assistance/m-p/1917328#M1218385</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Please help me with the script.&lt;/P&gt;
&lt;P&gt;SE_TMP:&lt;BR /&gt;Load&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"Derived National Service Event Record Id",&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;1 as count_oos&lt;BR /&gt;FROM&lt;BR /&gt;QVD;&lt;/P&gt;
&lt;P&gt;SE:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;"OOS.Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;0 as count_oos&lt;BR /&gt;RESIDENT OOS&lt;BR /&gt;WHERE NOT EXISTS ("Derived National Service Event Record Id","OOS.Derived National Service Event Record Id")&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Concatenate(SE)&lt;BR /&gt;LOAD&lt;BR /&gt;"Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;"Facility Identifier" &lt;BR /&gt;,"SE.Service Event Record ID"&lt;BR /&gt;,count_se as SE.count_se&lt;BR /&gt;,count_moh_se as SE.count_moh_se&lt;BR /&gt;RESIDENT SE_TMP;&lt;/P&gt;
&lt;P&gt;DROP TABLE SE_TMP;&lt;/P&gt;
&lt;P&gt;from the middle script , I am getting two records becoz of different&amp;nbsp;SE.Service Event Record ID .i.e below script&lt;/P&gt;
&lt;P&gt;SE:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;"OOS.Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;0 as count_oos&lt;BR /&gt;RESIDENT OOS&lt;BR /&gt;WHERE NOT EXISTS ("Derived National Service Event Record Id","OOS.Derived National Service Event Record Id")&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way I get the every first row the the distinct record in RESIDENT table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an eg , I have to get the distinct record depending on&amp;nbsp;erived National Service Event Record Id not&amp;nbsp;Service Event Record ID. I can understand why my distinct is not working becoz this are two record&amp;nbsp; because of&amp;nbsp;Service Event Record ID&lt;/P&gt;
&lt;P&gt;Is there any way in qlikview script where I can only pick the first record ?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 09:04:44 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2022-04-12T09:04:44Z</dc:date>
    <item>
      <title>Need assistance</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance/m-p/1917328#M1218385</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Please help me with the script.&lt;/P&gt;
&lt;P&gt;SE_TMP:&lt;BR /&gt;Load&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"Derived National Service Event Record Id",&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;1 as count_oos&lt;BR /&gt;FROM&lt;BR /&gt;QVD;&lt;/P&gt;
&lt;P&gt;SE:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;"OOS.Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;0 as count_oos&lt;BR /&gt;RESIDENT OOS&lt;BR /&gt;WHERE NOT EXISTS ("Derived National Service Event Record Id","OOS.Derived National Service Event Record Id")&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Concatenate(SE)&lt;BR /&gt;LOAD&lt;BR /&gt;"Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;"Facility Identifier" &lt;BR /&gt;,"SE.Service Event Record ID"&lt;BR /&gt;,count_se as SE.count_se&lt;BR /&gt;,count_moh_se as SE.count_moh_se&lt;BR /&gt;RESIDENT SE_TMP;&lt;/P&gt;
&lt;P&gt;DROP TABLE SE_TMP;&lt;/P&gt;
&lt;P&gt;from the middle script , I am getting two records becoz of different&amp;nbsp;SE.Service Event Record ID .i.e below script&lt;/P&gt;
&lt;P&gt;SE:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;"OOS.Derived National Service Event Record Id" as IDKey,&lt;BR /&gt;[Facility Identifier],&lt;BR /&gt;"SE.Service Event Record ID",&lt;BR /&gt;1 as count_se&lt;BR /&gt;0 as count_oos&lt;BR /&gt;RESIDENT OOS&lt;BR /&gt;WHERE NOT EXISTS ("Derived National Service Event Record Id","OOS.Derived National Service Event Record Id")&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way I get the every first row the the distinct record in RESIDENT table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an eg , I have to get the distinct record depending on&amp;nbsp;erived National Service Event Record Id not&amp;nbsp;Service Event Record ID. I can understand why my distinct is not working becoz this are two record&amp;nbsp; because of&amp;nbsp;Service Event Record ID&lt;/P&gt;
&lt;P&gt;Is there any way in qlikview script where I can only pick the first record ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance/m-p/1917328#M1218385</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-04-12T09:04:44Z</dc:date>
    </item>
  </channel>
</rss>

