<?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 Create expression dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-expression-dynamically/m-p/102041#M605233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know from the backend that there will be 7 of these fields but could change to 8 , 9 ect the value vcount says the number&lt;/P&gt;&lt;P&gt; LET&amp;nbsp; vcount = NoOfRows('Fields_Mapping');&amp;nbsp;&amp;nbsp; // say its 7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vcount is 7 you need to generate the string below that i can use on the front end &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so im expecting let vMakeexpression=repeat().......smtng smnng to get the below string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =if(not isnull([Checklist Phase 7]), [Checklist Phase 7],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 6]), [Checklist Phase 6],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 5), [Checklist Phase 5],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 4]), [Checklist Phase 4],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 3]), [Checklist Phase 3],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 2]), [Checklist Phase 2],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 1]), [Checklist Phase 1]&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 13:25:30 GMT</pubDate>
    <dc:creator>vvvvvvizard</dc:creator>
    <dc:date>2018-07-18T13:25:30Z</dc:date>
    <item>
      <title>Create expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-dynamically/m-p/102041#M605233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know from the backend that there will be 7 of these fields but could change to 8 , 9 ect the value vcount says the number&lt;/P&gt;&lt;P&gt; LET&amp;nbsp; vcount = NoOfRows('Fields_Mapping');&amp;nbsp;&amp;nbsp; // say its 7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vcount is 7 you need to generate the string below that i can use on the front end &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so im expecting let vMakeexpression=repeat().......smtng smnng to get the below string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =if(not isnull([Checklist Phase 7]), [Checklist Phase 7],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 6]), [Checklist Phase 6],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 5), [Checklist Phase 5],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 4]), [Checklist Phase 4],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 3]), [Checklist Phase 3],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 2]), [Checklist Phase 2],&lt;/P&gt;&lt;P&gt;if(not isnull([Checklist Phase 1]), [Checklist Phase 1]&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-dynamically/m-p/102041#M605233</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2018-07-18T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-dynamically/m-p/102042#M605234</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;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LET vCount = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NoOfRows('Fields_Mapping');&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Concat(Temp, ',', -RowNo) &amp;amp; Repeat(')', $(vCount)) as String;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD IterNo() as RowNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; 'If(not isnull([Checklist Phase ' &amp;amp; IterNo() &amp;amp;']), [Checklist Phase ' &amp;amp; IterNo() &amp;amp; ']' as Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;While IterNo() &amp;lt;= $(vCount);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LET vMakeexpression = Peek('String');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 15:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-dynamically/m-p/102042#M605234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-18T15:03:21Z</dc:date>
    </item>
  </channel>
</rss>

