<?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 Use an expression in the condition of a do while in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1929875#M76561</link>
    <description>&lt;P&gt;My wish would be to get this type of operation, knowing that VALUEX is in TABLE :&lt;/P&gt;
&lt;PRE&gt;Set a = 0;&lt;BR /&gt;&lt;BR /&gt;Do While a &amp;lt; RangeMax(VALUEX) + 1&lt;BR /&gt;Left Join(TABLE)&lt;BR /&gt;Load&lt;BR /&gt;?????????&lt;BR /&gt;Resident TABLE&lt;BR /&gt;Where $(a) &amp;lt;= VALUEX;&lt;BR /&gt;Let a=a+1;&lt;BR /&gt;Loop&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I tried making a variable with RangeMax and Peek, but both do not return any value.&lt;/P&gt;
&lt;P&gt;Do you have a solution? Thanks&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 178px; top: 211.922px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 May 2022 08:46:09 GMT</pubDate>
    <dc:creator>Obsyky</dc:creator>
    <dc:date>2022-05-13T08:46:09Z</dc:date>
    <item>
      <title>Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1929875#M76561</link>
      <description>&lt;P&gt;My wish would be to get this type of operation, knowing that VALUEX is in TABLE :&lt;/P&gt;
&lt;PRE&gt;Set a = 0;&lt;BR /&gt;&lt;BR /&gt;Do While a &amp;lt; RangeMax(VALUEX) + 1&lt;BR /&gt;Left Join(TABLE)&lt;BR /&gt;Load&lt;BR /&gt;?????????&lt;BR /&gt;Resident TABLE&lt;BR /&gt;Where $(a) &amp;lt;= VALUEX;&lt;BR /&gt;Let a=a+1;&lt;BR /&gt;Loop&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I tried making a variable with RangeMax and Peek, but both do not return any value.&lt;/P&gt;
&lt;P&gt;Do you have a solution? Thanks&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 178px; top: 211.922px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 May 2022 08:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1929875#M76561</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2022-05-13T08:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930241#M76612</link>
      <description>&lt;P&gt;this script is to filter a table and left join to another table,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what exactly are you trying to do here&amp;nbsp; what is VALUEY and VALUEX ? please clarify&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930241#M76612</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930252#M76616</link>
      <description>&lt;P&gt;This is a mistake on my part, VALUEY does not exist, it is VALUEX.&lt;BR /&gt;VALUEX is simply the number of pipes contained in one of the attributes.&lt;BR /&gt;The objective is that I loop as many times as the maximum number of pipes that exist.&lt;BR /&gt;Then my method may not be the right one &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;The maximum number of pipes is 324 and the objective is that I break the values into several attributes to find them in a single value.&lt;/P&gt;
&lt;P&gt;What I would like to achieve:&lt;BR /&gt;(Knowing that X is the only value I have at the start)&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%"&gt;X&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;VALUEX&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;SEPARATE1&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;SEPARATE2&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;SEPARATE3&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;SEPARATE4&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;SEPARATE5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="14.285714285714286%"&gt;DATA | DATA1 | BIG DATA | BIG | FARM&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;4&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;DATA&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;DATA1&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;BIG DATA&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;BIG&lt;/TD&gt;
&lt;TD width="14.285714285714286%"&gt;FARM&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I could run the loop 324 times, but if there are at most 10 pipes, I will create 314 empty attributes...&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930252#M76616</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2022-05-13T08:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930254#M76617</link>
      <description>&lt;P&gt;So you have X and ValueX&lt;/P&gt;
&lt;P&gt;and you want to split X into multiple columns is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930254#M76617</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930258#M76618</link>
      <description>&lt;P&gt;Completely&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: -55px; top: 28px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 May 2022 09:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930258#M76618</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2022-05-13T09:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression in the condition of a do while</title>
      <link>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930273#M76622</link>
      <description>&lt;P&gt;temp:&lt;BR /&gt;Load X as Key, subfield(X,'|') as Value ,'Seperate'&amp;amp;rowno() as Attribute Inline [&lt;BR /&gt;X,VALUEX &lt;BR /&gt;DATA | DATA1 | BIG DATA | BIG | FARM , 4&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Generic:&lt;BR /&gt;Generic Load &lt;BR /&gt;Key,Attribute,Value Resident temp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Set vListOfTables = ;&lt;/P&gt;
&lt;P&gt;For vTableNo = 0 to NoOfTables()&lt;/P&gt;
&lt;P&gt;Let vTableName = TableName($(vTableNo)) ;&lt;/P&gt;
&lt;P&gt;If Subfield(vTableName,'.',1)='Generic' Then&lt;/P&gt;
&lt;P&gt;Let vListOfTables = vListOfTables &amp;amp; If(Len(vListOfTables)&amp;gt;0,',') &amp;amp; Chr(39) &amp;amp; vTableName &amp;amp; Chr(39) ;&lt;/P&gt;
&lt;P&gt;End If&lt;/P&gt;
&lt;P&gt;Next vTableNo;&lt;/P&gt;
&lt;P&gt;CombinedGenericTable:&lt;/P&gt;
&lt;P&gt;Load distinct Key Resident temp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For each vTableName in $(vListOfTables)&lt;/P&gt;
&lt;P&gt;Left Join (CombinedGenericTable) Load * Resident [$(vTableName)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Drop Table temp;&lt;/P&gt;
&lt;P&gt;Next vTableName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikCommunity1.PNG" style="width: 753px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79348i422283183DFA57D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikCommunity1.PNG" alt="qlikCommunity1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-an-expression-in-the-condition-of-a-do-while/m-p/1930273#M76622</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T09:18:50Z</dc:date>
    </item>
  </channel>
</rss>

