<?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: Logic help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113464#M1252136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the input coming from? Are there set number of inputs like Step 1 to Step 10? Also, are we discarding the backend solution and moving onto just the front end solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 10:28:11 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-30T10:28:11Z</dc:date>
    <item>
      <title>Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113455#M1252107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below data set. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;SubID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output needed (I want to calculate it in front end only)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;&lt;P&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic: For ID 2, I want to see previous ID &amp;amp; subid should be equal to current id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; example, For ID 2, I will see the previous ID 1 and Pick subid =2 value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113455#M1252107</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113456#M1252111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(SubID = Above(SubID) and ID = SubID, Above(Actual)), SubID, ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135959_Capture.PNG" style="height: 132px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113456#M1252111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T09:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113457#M1252115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible with set analysis? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113457#M1252115</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113458#M1252119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you are willing to make changes in the script, I doubt set analysis is possible here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113458#M1252119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T10:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113459#M1252121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is simple transformation then I would not mind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113459#M1252121</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113460#M1252125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also when I select the ID from listbox value becomes 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113460#M1252125</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113461#M1252128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; AutoNumber(ID&amp;amp;SubID) as Key;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, SubID, Actual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 3, 250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 3, 400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 3, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 4, 600&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD ID + 1 as ID,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; SubID,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; Actual as Prev_Actual&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Where ID + 1 = SubID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then just this as your expression -&amp;gt; &lt;STRONG&gt;Sum(Prev_Actual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135963_Capture.PNG" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113461#M1252128</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T10:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113462#M1252131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression to address the issue of getting zero when you select an ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Only({1}SubID) = Above(Only({1}SubID)) and Only({1}ID) = Only({1}SubID), Above(Only({1}Actual))), SubID, ID)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135965_Capture.PNG" style="height: 140px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113462#M1252131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T10:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113463#M1252133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is dynamic. lets say currently I am showing for previous but there would be previous to previous and up to 5 step back. So when I will select the step as 1 above calculation will work and when I will select step 2 below will be output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;&lt;P&gt;250&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I do it in front end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113463#M1252133</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113464#M1252136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the input coming from? Are there set number of inputs like Step 1 to Step 10? Also, are we discarding the backend solution and moving onto just the front end solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113464#M1252136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T10:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113465#M1252139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Input will be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on step selection, our calculation should work. I think this is possible only from front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113465#M1252139</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113466#M1252142</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;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; AutoNumber(ID&amp;amp;SubID) as Key;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, SubID, Actual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 3, 250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 3, 400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 3, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 4, 600&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where ID = SubID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID + IterNo() as ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Actual as Prev_Actual,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; IterNo() as Step&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While IterNo() &amp;lt;= 5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Step = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135967_Capture.PNG" style="height: 195px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Step = 1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/135968_Capture.PNG" style="height: 186px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113466#M1252142</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-30T10:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113467#M1252145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ thanks a lot, but issue with me is, ID is actually in characters(iterno will not work i guess), I would not be able to share the data due to which I prepared this data. Sorry for the inconvenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113467#M1252145</guid>
      <dc:creator />
      <dc:date>2016-09-01T18:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113468#M1252146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share how your ID looks like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113468#M1252146</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T18:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113469#M1252148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's Ab12ef, abce12, cd12ce etc.. it's random alphanumeric string in which there is no pattern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113469#M1252148</guid>
      <dc:creator />
      <dc:date>2016-09-01T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113470#M1252149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then what is Step1 and Step2? I guess you will have to provide a better sample for us to look at, this is something I can't really comment about without looking at&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113470#M1252149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T18:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113471#M1252150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this sample Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="64"&gt;SubID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="64"&gt;Actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;KC123T&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Step 1, Go to previous ID(1 step),&amp;nbsp; check subid which is equal to below(1 step) id&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="font-style: inherit;" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for step 2, &lt;SPAN style="font-size: 13.3333px;"&gt;Go to previous ID(2 step),&amp;nbsp; check subid which is equal to below (2 step) id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;AB12CD&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;TD123C&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;PC12KT&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic is the same which I have explained in OP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 07:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113471#M1252150</guid>
      <dc:creator />
      <dc:date>2016-09-02T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113472#M1252151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 08:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113472#M1252151</guid>
      <dc:creator />
      <dc:date>2016-09-02T08:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113473#M1252152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 10:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113473#M1252152</guid>
      <dc:creator />
      <dc:date>2016-09-02T10:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113474#M1252153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Responded to your new thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1116886"&gt;Re: Previous value logic&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 10:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help-needed/m-p/1113474#M1252153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-02T10:47:38Z</dc:date>
    </item>
  </channel>
</rss>

