<?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: Qlikview Looping Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437243#M431647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. Will post here if i find a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 14:50:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-22T14:50:16Z</dc:date>
    <item>
      <title>Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437234#M431638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am facing an certain issue for an new development requirement . the requirement is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have an Screenshot of the sample data. Here for the same Id we are getting about 5 lines of data and all of them have an different plate No's. if the plate flag is yes then it is generic or else normal.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Requirement.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184155_Requirement.PNG" style="height: 148px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If the values of Received Order Quantity is equal to the SAP Order Quantity then those rows should not be shown in the report. The Problem is that inside the Same ID they are segregated like this so even if the value of Generic and Normal are equal to the SAP one both should be ommited.&lt;/P&gt;&lt;P&gt;Like here if you add the Value of the Received Order Quantity in first row and the Fourth row it becomes 45 and both should be ommited. Similarly for second and fifth both should be ommited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i thought was to create an while loop based on the Count of Plate Flag = 'Yes' and then add the values based on it. But even if it gets looped two times how can we specify it should sum only Generic and Normal and not like Generic- Generic or Normal - Normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is one more problem if we create an loop also then for some orders if there is no generic flag at all it will not go into the loop. If there if no generic Plate and there are three normal plates then none of the logic should apply and all three should come on the report&amp;nbsp; even if the sum of any two or all three is equal.&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;1) Here first and fourth are all same and if you add ROQ we get SAP Order Quantity so those should be omitted.&lt;/P&gt;&lt;P&gt;2) Similarly second and Fifth.&lt;/P&gt;&lt;P&gt;3)Third should be available in the report.&lt;/P&gt;&lt;P&gt;4) Similary sixth and seven when it is added becomes equal and should be elimanted.&lt;/P&gt;&lt;P&gt;5) Eight and nine both id and invoice id is different so should be there in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance for your Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Vigneshwaran.M.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vigneshwaran MK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 07:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437234#M431638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T07:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437235#M431639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) With "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The Problem is that inside the Same DC...." do you mean "......same ID"?&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;&lt;BR /&gt;&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;2) Could you please provide some sample data that is relevant and more than a few lines in an Excel-file or CSV-file?&lt;BR /&gt;&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;&lt;BR /&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437235#M431639</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-22T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437236#M431640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for your reply. I have attached an sample and have also put in the various scenarios in the original post itself.&lt;/P&gt;&lt;P&gt;It was an mistake from my end only. Same DC means Same ID only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 09:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437236#M431640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T09:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437237#M431641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it always two rows that should be considered and added together and then be compared to the SAP Order Quantity?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437237#M431641</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-22T10:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437238#M431642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Neccesarily. If the ID, Invoice ID and Date is same with different plate Number and has atleast one plate flag as Yes, then only it should be considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is just one Row it will automatically be compared with SAP quantity and if it is equal then it will be eliminated. which is working correctly.&amp;nbsp; Only when it is splitted based on the flag we are having these issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437238#M431642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T11:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437239#M431643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be more than two also like in the case of first five rows all the three (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;ID, Invoice ID and Date) are same. But still compared based on the flag&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437239#M431643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437240#M431644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But can a sum of the rows be a situation that might occur?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like one with plate flag Yes and two with plate flag No? Is the processing rule to always only add two and only two numbers to check for the SAP Order Quantity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation to how many rows that can occur for each ID? A max number of rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437240#M431644</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-22T11:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437241#M431645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is No limitations for ID. It can have even 10 rows tagged to it. If all the values has Flag as 'No'. Then all the rows should come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else if there are suppose 10 rows and there are about 2 rows which has Plate Flag as No. Then we should check if the value of that Plate Flag No if added with any one of the other eight rows with Plate Flag Yes gives the values of SAP Order Quantity. If So both the rows should be removed else both should be present.&lt;/P&gt;&lt;P&gt;Here's where the tricky part even if the values of two rows which has No are added and becomes equal to SAP value it should not be neglected. Similarly for 'Yes' as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only if it is an 'No' and an 'Yes' it should be taken into consideration. Also suppose there are &lt;STRONG&gt;two 'No'&lt;/STRONG&gt; and &lt;STRONG&gt;Two 'Yes'.&lt;/STRONG&gt; Adding the &lt;STRONG&gt;Two 'No'&lt;/STRONG&gt; and &lt;STRONG&gt;One 'Yes'&lt;/STRONG&gt; will give the SAP Value then all &lt;STRONG&gt;three&lt;/STRONG&gt; should be eliminated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437241#M431645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437242#M431646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be able to calculate this reliably you will have to narrow down the constraints quite a bit. I can't help you - sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you have 1 YES and 19 NOs you will have to make a combination of the various numbers to sum up in population sizes varying from 2 up to 20. By simple combinatorics that would calculate to over a million different sums to evaluate for this single ID. For 1 YES and 7 NOs the number of calculations will be 247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not a straightforward calculation - so I think it will be very timeconsuming to find a right solution both in load script or in a visualization in a table.... At least it will be for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437242#M431646</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-22T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Looping Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437243#M431647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. Will post here if i find a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 14:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Looping-Issue/m-p/1437243#M431647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T14:50:16Z</dc:date>
    </item>
  </channel>
</rss>

