<?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: Change Static variables and expression to Dynamic var and expr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324650#M842421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general it seems to work - the difference by the second dimensionvalue seems to be caused from a difference between the origin variable-values and the new inline-table. Please verify that they are identically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162055_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 14:42:56 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-05-03T14:42:56Z</dc:date>
    <item>
      <title>Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324638#M842409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview Wizards, here is a brainteaser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inherited a qvw from a colleague and I want to change some of the logic but it's to complicated.&lt;/P&gt;&lt;P&gt;Therefore I want to ask your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the pivot table in the&amp;nbsp; report is the calculation of productivity's relative to the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the Target there are variables used:&lt;/P&gt;&lt;P&gt;ProdStaffel and ProdFactor.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ProdStaffel1&amp;nbsp; (value = 1) corresponds with ProdFactor1 (value = 7,9)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ProdStaffel2&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;(value = 2) &lt;/SPAN&gt;corresponds with ProdFactor2 &lt;SPAN style="font-size: 13.3333px;"&gt;(value = 7,8)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ProdStaffel3&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(value = 3) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;corresponds with ProdFactor2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(value = 7,7)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ProdStaffel99&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;(value = 99)&lt;/SPAN&gt; corresponds with ProdFactor99&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(value = 2,2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ProdStaffel100 &lt;SPAN style="font-size: 13.3333px;"&gt;(value = 100)&lt;/SPAN&gt; corresponds with ProdFactor100&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;(value = 2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is formed through nested if statements (around 99)&lt;/P&gt;&lt;P&gt;if (#Colli/#Assignments &amp;gt;= ProdStaffel1&amp;nbsp; and #Colli/#Assignments &amp;lt;= ProdStaffel2, #Colli/#Assignments&amp;nbsp; *ProdFactor1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (#Colli/#Assignments &amp;gt;= ProdStaffel2&amp;nbsp; and #Colli/#Assignments &amp;lt;= ProdStaffel3, #Colli/#Assignments *ProdFactor2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (#Colli/#Assignments &amp;gt;= ProdStaffel3&amp;nbsp; and #Colli/#Assignments &amp;lt;= ProdStaffel4, #Colli/#Assignments *ProdFactor3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (#Colli/#Assignments &amp;gt;= ProdStaffel4&amp;nbsp; and #Colli/#Assignments &amp;lt;= ProdStaffel5, #Colli/#Assignments *ProdFactor4,&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Target calculation for each zone is the same.&lt;/P&gt;&lt;P&gt;This is correct for most of the zones but for a few zones (for example 'Zuivel gekoeld blok F') the values of variable ProdFactor should be different.&lt;/P&gt;&lt;P&gt;In the expression I need to be able to calculate the target depending on the Aisle Zone Description and the set of ProdFactor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 677px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="32" width="118"&gt;Aisle Zone Description&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="76"&gt;#Colli&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="70"&gt;#Time Worked&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;#Assignments&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="100"&gt;Average Assignments&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="78"&gt;Productivity&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Target&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="75"&gt;Percentage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="118"&gt;Flowthru&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;78022&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;488:59:17&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;2114&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;36,91&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="78"&gt;159,56&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;166,08&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;96,07%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border-top: none;"&gt;GRF 4de gamma&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;12911&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;66:14:21&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;238&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;54,25&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="78"&gt;194,91&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;206,14&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;" width="75"&gt;94,55%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="32" style="border-top: none;" width="118"&gt;GRF gekoeld&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;16663&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;87:11:33&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;392&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;42,51&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="78"&gt;191,11&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;187,03&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;102,18%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="118"&gt;PAT blok D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;189&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;" width="70"&gt;6:42:00&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;38&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;4,97&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="78"&gt;28,21&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;37,8&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="75"&gt;74,63%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="118"&gt;Piece_Pick&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;1353&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;" width="70"&gt;2:52:18&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;20&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;67,65&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="78"&gt;471,15&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;223,25&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;211,05%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="32" style="border-top: none;" width="118"&gt;Piece_Pick_BF&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;3988&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;" width="70"&gt;8:26:28&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;94&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;42,43&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="78"&gt;472,45&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;186,67&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;253,09%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="48" style="border-top: none;" width="118"&gt;Zuivel gekoeld blok F&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;7336&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;62:50:05&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;162&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;45,28&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="78"&gt;116,75&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;194,72&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="75"&gt;59,96%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="48" style="border-top: none;" width="118"&gt;Zuivel ongekoeld&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;7404&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;59:04:11&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;267&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;27,73&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="78"&gt;125,34&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;146,97&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="75"&gt;85,28%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="64" style="border-top: none;" width="118"&gt;Zuivel Traiteur gekoeld blok H&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;3187&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;" width="70"&gt;18:53:41&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;101&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;31,55&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="78"&gt;168,67&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;154,62&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;109,09%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="48" style="border-top: none;" width="118"&gt;Zuurwaren/Mosselen&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="76"&gt;2386&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="70"&gt;26:01:31&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="96"&gt;178&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="100"&gt;13,4&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="78"&gt;91,68&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;89,81&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="75"&gt;102,08%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This are the results now and as Example I take Aisle Zone Description: &lt;STRONG&gt;'Flowthru'&lt;/STRONG&gt; and the expression is&lt;/P&gt;&lt;P&gt;if (#Colli/#Assignments &amp;gt;= ProdStaffel36 and #Colli/#Assignments &amp;lt;= ProdStaffel37,#Colli/#Assignments *ProdFactor36,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;#Colli (78022) / #Assignments (2114) = 36,91 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN style="color: #333333;"&gt;36,91 * ProdFactor36 (value is 4,5) &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle Zone Description:&lt;/SPAN&gt; &lt;STRONG&gt;'Zuivel gekoeld blok F'&lt;/STRONG&gt; I need to set a different set of values for variable ProdFactor.&lt;/P&gt;&lt;P&gt;In this case the result of the expression would be &lt;/P&gt;&lt;P&gt;(#Colli / #Assignments = 45,28)&amp;nbsp; * (ProdFactor45 = 4,3)&amp;nbsp; = 194,70&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this &lt;STRONG&gt;Aisle Zone&lt;/STRONG&gt; &lt;STRONG&gt;Description &lt;STRONG style="font-size: 13.3333px;"&gt;'Zuivel gekoeld blok F'&lt;/STRONG&gt;&lt;/STRONG&gt; the variables ProdFactor should have other values:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(#Colli / #Assignments = 45,28)&amp;nbsp; * (ProdFactor45 = 2,5)&amp;nbsp; = 113,20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a 100 new variables and add another clause to the if statement isn't a clean solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me to get a clean, short and manageable solution for this problem?&lt;/P&gt;&lt;P&gt;I've attached the qvw where to see the solution as is at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&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/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324638#M842409</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324639#M842410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a work in progress idea, maybe someone else can finish it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's based on the observation that the tests on '#Colli/#Assignments', which are in step s of 1. So it is possible to generate the corresponding ProdFactor, by concatenating ProdFactor with Floor(#Colli/#Assignment) to generate the appropriate factor value. Therefore, the expression is simplified, and you can now test for different zones, without getting lost in a sea of ')'s. But... and this is where someone else can help, I can't quite resolve the dynamically generated ProdFactor. I can't see why... anyway attached is an edited version with 3 new columns: 'ProdFactor Num' , 'ProdFactor Var Name, and 'ProdFactor Value'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324639#M842410</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2017-04-26T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324640#M842411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but the result of expression ProdFactor value isn't correct.&lt;/P&gt;&lt;P&gt;ProdFactor Num 44 has in your example a value of 4,5 but if you look to the variable overview the value should be 4,3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324640#M842411</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-04-26T15:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324641#M842412</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;Sorry for not being clearer. That is the problem I'm hoping someone else maybe able to help with - why all the values for ProdFactor come out at 4,50. If it did work (big if) then your expression for 'Target' would become:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// expression for #Colli/#Assignment&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Jobcode Flag] = {"Productive"}&amp;gt;}[Assignment Total Colli]) /&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Jobcode Flag]= {"Productive"}&amp;gt;} DISTINCT [Assignment ID]) *&lt;/P&gt;&lt;P&gt;// expression for dynamically generated ProdFactorxx&lt;/P&gt;&lt;P&gt;$(='ProdFactor' &amp;amp;&lt;/P&gt;&lt;P&gt;Num(Floor(&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Jobcode Flag] = {"Productive"}&amp;gt;}[Assignment Total Colli]) /&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Jobcode Flag]= {"Productive"}&amp;gt;} DISTINCT [Assignment ID])), '#.##0')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional comment 30/04/2017:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the dollar expansion is made first, before the expression is evaluated, so it cannot expand to different dimensions. In effect it is evaluating all values of [Assignment Total Colli] and all values of [Assignment ID] (like if it was an expression in a text object), which is why it returns the same value for every cell. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324641#M842412</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2017-04-26T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324642#M842413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok thanks I understand now what you're trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324642#M842413</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-04-26T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324643#M842414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anybody who can help me with this problem please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 09:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324643#M842414</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-02T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324644#M842415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to use a pick(match()) lookup instead of the nested if-loops whereby I would maintain all of the checking/matching prod-data within a small excel-table and not within variables. Such an excel could be created within a few minutes and is a lot easier to maintain as all those variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression for Target could be look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Colli/#Assignments *&lt;/P&gt;&lt;P&gt;pick(match(floor(#Colli/#Assignments, 0.1), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdStaffel, ',', ExcelRecNo)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdFactor, ',', ExcelRecNo)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concat() within the $-sign expansion served the purpose to assign all values of a certain field from your excel-maintaining table into a string which is then used as lookup- respectively return-value as if you had written those parameter-values manually (and because they are just numbers it's quite easy without the need of any quotes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another important part is floor-function because pick(match()) couldn't directly compare &amp;lt; or &amp;gt; it's rounding consequently up to one digit - which meant that your excel must contain this granularity (in your case maybe 500 - 600 values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you will see some similar cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/593232"&gt;Re: Substitute to nested ifs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1234265"&gt;Re: Pick() Match() with '&amp;amp;gt;=*' condition. Is it possible?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 11:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324644#M842415</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-02T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324645#M842416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been studying the examples you suggested but it's a little bit chinese for me.&lt;/P&gt;&lt;P&gt;I'm not used to use such complex structures (still a newbe in that area).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also on myQlikview Server is no Excel apllication installed and our IT department wont ever allow it.&lt;/P&gt;&lt;P&gt;So I'm a little stuck now with the suggested solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be the similar if I use an inline table with an extra field RowNo ?&lt;/P&gt;&lt;P&gt;In my example you can see the inline table and my attempt to use your expression.&lt;/P&gt;&lt;P&gt;The expression doesn't give me any values so there must be something I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible you can take a peek at my example please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach a new example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324645#M842416</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-03T11:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324646#M842417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you could use such an inline-table with the following slight adjustments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Staffel:&lt;/P&gt;&lt;P&gt;Load *, &lt;STRONG&gt;RowNo() as RowNo&lt;/STRONG&gt; INLINE [&lt;/P&gt;&lt;P&gt;ProdStaffel,&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdStafValue,&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdFactor,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdFactorValue&lt;/P&gt;&lt;P&gt;ProdStaffel1&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdFactor1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"&lt;/STRONG&gt;7,9&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ProdStaffel2&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdFactor2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"&lt;/STRONG&gt;7,8&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ProdStaffel3&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; ProdFactor3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"7.7"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;] where len(ProdStaffel) &amp;gt; 5; // to exclude the ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default-delimiter is the comma so you will need double-quotes around field-values which contain commas - whereby I'm not sure if your system will interpret the comma as decimal-delimiter correctly or if it would be better to change it to a point - of course you could it also convert with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(num#(ProdFactorValue, '0,0', '.', ','))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like above mentioned it's a lot more handy to use excel for it even if you hadn't it available on the server - you could create it on your local machine and then copy the data into the inline-table by adjusting the fileformat to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;] &lt;STRONG&gt;(txt, delimiter is \t)&lt;/STRONG&gt; where len(ProdStaffel) &amp;gt; 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will react to the tab-sign between the excel-columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324646#M842417</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-03T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324647#M842418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id did as you suggested and used my local excel.&lt;/P&gt;&lt;P&gt;How can I now calculate the Target based on the excel values instead of the variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 12:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324647#M842418</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-03T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324648#M842419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your Staffel-table look ok? If yes, an adapted version of my pick(match()) suggestion should work. Maybe you provide a new version of your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 13:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324648#M842419</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-03T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324649#M842420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table looks OK to me.&lt;/P&gt;&lt;P&gt;I'll attach the newest version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 14:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324649#M842420</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-03T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324650#M842421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general it seems to work - the difference by the second dimensionvalue seems to be caused from a difference between the origin variable-values and the new inline-table. Please verify that they are identically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162055_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 14:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324650#M842421</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-03T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324651#M842422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Original calculation isn't quite wright, there's a variable missing (ProdStaffel48) and that's why there is a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution to get rid of the variables is great and works fine.&lt;/P&gt;&lt;P&gt;Now I've added a set of fields to the excel table with different ProdFactorValues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the Aisle Zone Description Zuivel gekoeld blok F the expression should use the new fields to calculate the Target, for all the other Aisle Zone Descriptions the expression should use the fields we've tested.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel&lt;/TD&gt;&lt;TD&gt;ProdStafValue&lt;/TD&gt;&lt;TD&gt;ProdFactor&lt;/TD&gt;&lt;TD&gt;ProdFactorValue&lt;/TD&gt;&lt;TD&gt;ProdStaffel_F&lt;/TD&gt;&lt;TD&gt;ProdStafValue_F&lt;/TD&gt;&lt;TD&gt;ProdFactor_F&lt;/TD&gt;&lt;TD&gt;ProdFactorValue_F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ProdFactor1&lt;/TD&gt;&lt;TD&gt;7.9&lt;/TD&gt;&lt;TD&gt;ProdStaffel1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ProdFactor1&lt;/TD&gt;&lt;TD&gt;3.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;ProdFactor2&lt;/TD&gt;&lt;TD&gt;7.8&lt;/TD&gt;&lt;TD&gt;ProdStaffel2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;ProdFactor2&lt;/TD&gt;&lt;TD&gt;3.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;ProdFactor3&lt;/TD&gt;&lt;TD&gt;7.7&lt;/TD&gt;&lt;TD&gt;ProdStaffel3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;ProdFactor3&lt;/TD&gt;&lt;TD&gt;3.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;ProdFactor4&lt;/TD&gt;&lt;TD&gt;7.6&lt;/TD&gt;&lt;TD&gt;ProdStaffel4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;ProdFactor4&lt;/TD&gt;&lt;TD&gt;3.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProdStaffel5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;ProdFactor5&lt;/TD&gt;&lt;TD&gt;7.5&lt;/TD&gt;&lt;TD&gt;ProdStaffel5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;ProdFactor5&lt;/TD&gt;&lt;TD&gt;3.7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a simple If statement with no result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Aisle Zone Description] = "Zuivel gekoeld blok F",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Colli/#Assignments *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick(match(floor(#Colli/#Assignments),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdStafValue_F, ',', RowNo))),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdFactorValue_F, ',', RowNo)))&lt;/P&gt;&lt;P&gt;,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//Else&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,#Colli/#Assignments *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick(match(floor(#Colli/#Assignments),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdStafValue, ',', RowNo))),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdFactorValue, ',', RowNo))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 16:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324651#M842422</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-03T16:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324652#M842423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason for no results are the double-quotes around: "Zuivel gekoeld blok F" which qlikview will handle as a field and not as string - if you used single-quotes like this it will work: 'Zuivel gekoeld blok F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324652#M842423</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-04T06:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324653#M842424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm over the moon with the result and it's a clean and manageable solution.&lt;/P&gt;&lt;P&gt;So glad that there are people who share their knowledge and time to help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one question remains, the syntax for Pick is &lt;SPAN style="color: #212121; font-family: 'open sans', sans-serif; font-size: 14px;"&gt;Pick (position{, Expression})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: 'open sans', sans-serif; font-size: 14px;"&gt;Can you tell me how this relates for this statement please, I want to understand what's happening instead of just copying the expression and not knowing how it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#Colli/#Assignments *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick(match(floor(#Colli/#Assignments, 0.1),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdStaffel, ',', ExcelRecNo)),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=concat(ProdFactor, ',', ExcelRecNo)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324653#M842424</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-04T11:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324654#M842425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the following practical example made more clear what's happening:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 3, 4),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Jan', 'Feb', 'Mar', 'Apr')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Month = 2 it will return 'Feb' because the value 2 of Month will be found on the second position of the match-function which is also 2 in our case and 'Feb' is on the second position within the value-list of the pick-function. Used in this way it's a kind of a lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324654#M842425</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-04T11:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324655#M842426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to check that I understand it am I correct to say that: &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(=concat(ProdStaffel, ',', ExcelRecNo)), is the first value to lookup (like in your ex.jan)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and &lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp; $(=concat(ProdFactor, ',', ExcelRecNo)) is the second value to lookup (lik in your ex.feb) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324655#M842426</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-04T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324656#M842427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly. The concat-functions within $-sign expansion are creating just these value-lists from the fields to save the efforts to write all of them manually. Here is a very good explanation to this feature: &lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324656#M842427</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-04T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Static variables and expression to Dynamic var and expr</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324657#M842428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Static-variables-and-expression-to-Dynamic-var-and-expr/m-p/1324657#M842428</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2017-05-04T13:04:19Z</dc:date>
    </item>
  </channel>
</rss>

