<?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: Loop in expression or text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915306#M317525</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;See attached image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see highlighted column Priority_Combination it has a string separated with comma (,) now I want to get each value of this string into variables, so I can identify which rules parameter are there in that particular rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New_Cat_Rule is the list box for the list of rules names and all have different combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;P&gt;&lt;IMG alt="temp.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94185_temp.jpg" style="height: 216px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 23:35:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-27T23:35:10Z</dc:date>
    <item>
      <title>Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915302#M317521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a generate a loop in the expression/text box on the based of selection in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the basis of selection I got the string in the table which is separated by comma (,) and I want to run the loop to find out how many strings I have after using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubStringCount(Priority_Combination, ',' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want to store this in a variable so that I can run a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and further want to store each value of string in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 01:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915302#M317521</guid>
      <dc:creator />
      <dc:date>2015-07-27T01:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915303#M317522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain with example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 09:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915303#M317522</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-27T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915304#M317523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ValueLoop()&amp;nbsp; function can help you with looping. Furthermore you could do a Concat() to join values from a field into a string or a string with multiple lines using a carriage return as a value separator - Chr(10).&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe SubField() also can be of help to split a string into multiple values into conjuction with ValueLoop().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you give a more specific use case / example it would be easier to suggest the right approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 09:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915304#M317523</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-27T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915305#M317524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/sumit.arora"&gt;sumit.arora&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you give an example with the sample data. So that it will help the folks to give quick and efficient solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 11:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915305#M317524</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-07-27T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915306#M317525</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;See attached image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see highlighted column Priority_Combination it has a string separated with comma (,) now I want to get each value of this string into variables, so I can identify which rules parameter are there in that particular rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New_Cat_Rule is the list box for the list of rules names and all have different combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;P&gt;&lt;IMG alt="temp.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94185_temp.jpg" style="height: 216px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 23:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915306#M317525</guid>
      <dc:creator />
      <dc:date>2015-07-27T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915307#M317526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this can be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&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;RuleID | Priority_Combination&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;29 | VENDOR_NUMBER, PURCHASING_ORDER, MATERIAL_GROUP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] (delimiter is |);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Variable vVar: &lt;STRONG&gt;SubField(Priority_Combination, ',', '$1')&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/94187_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the text box object, try this as your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(vVar(1))&lt;/STRONG&gt; to get &lt;STRONG style="font-size: 13.3333330154419px;"&gt;VENDOR_NUMBER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;=$(vVar(2))&lt;/STRONG&gt; to get &lt;STRONG style="font-size: 13.3333330154419px;"&gt;PURCHASING_ORDER&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;=$(vVar(3)) &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;to get&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt; &lt;STRONG style="font-size: 13.3333330154419px;"&gt;MATERIAL_GROUP&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94188_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the qvw for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915307#M317526</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T00:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915308#M317527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response, but the &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Priority_Combination &lt;/STRONG&gt;is not constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 40 set of rules on the basis of 9 parameters (Vendor, Contract, GL, text, category etc) and they changes on the basis of selection from the list box (New_Cat_Rule).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915308#M317527</guid>
      <dc:creator />
      <dc:date>2015-07-28T00:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915309#M317528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure what you mean? Can you show an example???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915309#M317528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T00:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915310#M317529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue is that data is too big behind so attach the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below image now you can see 4 set of rows for the Priority_Combination and 4 different rules in the New_Cat_Rule list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="temp.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94191_temp.jpg" style="height: 218px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915310#M317529</guid>
      <dc:creator />
      <dc:date>2015-07-28T00:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915311#M317530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the above example what would be saved in a variable??? If we know that, we might be able to figure it out what can be done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915311#M317530</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915312#M317531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As default I have assigned the variables on the load and assigned the value =0 now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can count number of values by SubStringCount(Priority_Combination, ',' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want to loop &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SubStringCount(Priority_Combination, ',' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check if subfield(Priority_Combination, ',' ,i)= Vendor_Number then set the vVendorNo = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am able to explain you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 01:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915312#M317531</guid>
      <dc:creator />
      <dc:date>2015-07-28T01:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915313#M317532</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/191017"&gt;qlikviewwizard&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 02:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915313#M317532</guid>
      <dc:creator />
      <dc:date>2015-07-28T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915314#M317533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you have any solution to above situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 04:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915314#M317533</guid>
      <dc:creator />
      <dc:date>2015-07-28T04:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in expression or text box</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915315#M317534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't Sumit. I am not entirely grasping the requirement here. I am sorry brother.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-expression-or-text-box/m-p/915315#M317534</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T10:18:08Z</dc:date>
    </item>
  </channel>
</rss>

