<?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 Looping in qlikivew for getting the latest loaded data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-in-qlikivew-for-getting-the-latest-loaded-data/m-p/650718#M237995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement, my fact will be loaded every day with the data.&lt;/P&gt;&lt;P&gt;So I have to take the latest data in the report, for that i have a snapshot dt and one is active flg.&lt;/P&gt;&lt;P&gt;I need to check for latest snapshot ie. max(snapshot_dt) and check for the active flg=y, this is ok.&lt;/P&gt;&lt;P&gt;But now if the latest snapshot dt is having the active flg=N, then i hae to check for previous snapshot date and if its active_flg=n&lt;/P&gt;&lt;P&gt;thne i have to take previous snapshot dt...so on till i get active_flg=y and limit for checking this previous snapshot dt is distinct count of (snapshot _dt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have to do this in qlikview while loading the data in qvds.&lt;/P&gt;&lt;P&gt;I was trying to write the SQL procdure for it but itys a long process.&lt;/P&gt;&lt;P&gt;Can any one please tell me how&amp;nbsp; can i acheive this in qlikiview??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 12:57:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-10T12:57:19Z</dc:date>
    <item>
      <title>Looping in qlikivew for getting the latest loaded data</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-in-qlikivew-for-getting-the-latest-loaded-data/m-p/650718#M237995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement, my fact will be loaded every day with the data.&lt;/P&gt;&lt;P&gt;So I have to take the latest data in the report, for that i have a snapshot dt and one is active flg.&lt;/P&gt;&lt;P&gt;I need to check for latest snapshot ie. max(snapshot_dt) and check for the active flg=y, this is ok.&lt;/P&gt;&lt;P&gt;But now if the latest snapshot dt is having the active flg=N, then i hae to check for previous snapshot date and if its active_flg=n&lt;/P&gt;&lt;P&gt;thne i have to take previous snapshot dt...so on till i get active_flg=y and limit for checking this previous snapshot dt is distinct count of (snapshot _dt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have to do this in qlikview while loading the data in qvds.&lt;/P&gt;&lt;P&gt;I was trying to write the SQL procdure for it but itys a long process.&lt;/P&gt;&lt;P&gt;Can any one please tell me how&amp;nbsp; can i acheive this in qlikiview??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-in-qlikivew-for-getting-the-latest-loaded-data/m-p/650718#M237995</guid>
      <dc:creator />
      <dc:date>2014-06-10T12:57:19Z</dc:date>
    </item>
  </channel>
</rss>

