<?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 Update Values with For Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174855#M909901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across this question online in a 5 question demo QV Developer exam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d; background: white;"&gt;A customer has 30 target values that are used to evaluate the quality of an organization's&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;facilities. At least half the target values are changed monthly by the business users.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;What is the most efficient way for the developer to store, access, and maintain the target values?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;A. embed the target values into each expression in which they are required&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;B. save the target names and values in an external file, load them into a QlikView table, and use a&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;FOR loop to assign the values to variables&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;C. create a Variables tab in the load script and use 30 LET statements to assign the values to variables&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;D. manually create a variable for each value in Expression Overview and maintain them in Expression&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Overview&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Answer: B&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-size: 13.5pt; background: white; font-family: 'Helvetica','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My question is, why do you need a loop to update the table? Why not just a normal reload? I've never came across a situation where this was necessary. Can someone please explain this for me and I'd appreciate a small &lt;SPAN style="font-size: 13.3333330154419px;"&gt;qvw&lt;/SPAN&gt; example cause I really don't understand this logic right now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Update Values with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174855#M909901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across this question online in a 5 question demo QV Developer exam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d; background: white;"&gt;A customer has 30 target values that are used to evaluate the quality of an organization's&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;facilities. At least half the target values are changed monthly by the business users.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;What is the most efficient way for the developer to store, access, and maintain the target values?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;A. embed the target values into each expression in which they are required&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;B. save the target names and values in an external file, load them into a QlikView table, and use a&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;FOR loop to assign the values to variables&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;C. create a Variables tab in the load script and use 30 LET statements to assign the values to variables&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;D. manually create a variable for each value in Expression Overview and maintain them in Expression&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Overview&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; font-family: 'Helvetica','sans-serif'; color: #4d4d4d;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Answer: B&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-size: 13.5pt; background: white; font-family: 'Helvetica','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My question is, why do you need a loop to update the table? Why not just a normal reload? I've never came across a situation where this was necessary. Can someone please explain this for me and I'd appreciate a small &lt;SPAN style="font-size: 13.3333330154419px;"&gt;qvw&lt;/SPAN&gt; example cause I really don't understand this logic right now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174855#M909901</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update Values with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174856#M909902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tumelo,&lt;/P&gt;&lt;P&gt;You need to do a loop because you have 30 variables, you cannot assing this values manually on load script, and store them.&lt;/P&gt;&lt;P&gt;You need to do a Loop to assign the values to variables on Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post: &lt;A href="https://community.qlik.com/thread/143684"&gt;Variables (with SA) declaration from excel file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174856#M909902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-13T07:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update Values with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174857#M909903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The loop has the purpose to assign each table-value to a variable. If this is really the most efficient way to handle such a case? I personal would also rather load the table itself and connect it with normal table-associations or maybe a concatenate with the datamodel - especially to keep a history of these data and not overwrite them each month. Therefore I would suggest to create a further answer E for this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174857#M909903</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-13T07:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update Values with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174858#M909904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, You clarified this for me...I guess the question itself was a bit vague. I assumed these values are in a table format as apposed to valriables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Values-with-For-Loop/m-p/1174858#M909904</guid>
      <dc:creator />
      <dc:date>2016-06-13T07:35:50Z</dc:date>
    </item>
  </channel>
</rss>

