<?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: Multiplying multiple variables against a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193964#M626185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a demonstration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated most accurately how I am doing it in my actual document.&amp;nbsp; For some reason it does not update when I use a variable to include the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 19:46:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-17T19:46:59Z</dc:date>
    <item>
      <title>Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193955#M626169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields that I am multiplying against each other.&amp;nbsp; Each field is in two different tables but are synced through a unique identifier field.&amp;nbsp;&amp;nbsp; When I multiply them I have the following basic formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(KM*(Multi/100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that for each row of the KM field I want to multiply a different variable against it.&amp;nbsp;&amp;nbsp; I used dynamic update to do this originally but cannot use it on a server.&amp;nbsp; I want to give the ability to basically change the KM field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first attempt was the following with each variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Multi&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;*(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;KM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/100))&lt;BR /&gt; *(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Alberta486',300,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016British_Columbia486',122,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Saskatchewan486',80,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Quebec486',3,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Northwest_Territories486',0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Ontario486',3,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Manitoba486',40,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016New_Brunswick486',0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Nova_Scotia486',0,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Yukon486',0,&lt;BR /&gt; 10))))))))))&lt;BR /&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Note: 300 in the first if statement would actually be a variable and each other number below would be a variable as well that the user could change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;The problem here is that unless I selected one of the strings in that unique identifier field it would just multiply everything by 10.&amp;nbsp; Which I don't want.&amp;nbsp; It would work, but I had to select as an example '&lt;SPAN style="color: black;"&gt;ConstructionGas2016Alberta486' and it would only work for that one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I then though why not just create a specific set analysis statement for each row instead of the if statement which I tried the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: black;"&gt;300*&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;={'ConstructionGas2016Alberta486'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;KM&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;*(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Multi&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;/100))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This worked a bit better but would still give me data for provinces that were not associated with Alberta as an example.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;There are 600 rows in the KM field with a variable already created to adjust it.&amp;nbsp; Originally the variables were changed as a number you wanted to add or subtract from the "baseline" value in the KM field and then you a created a dynamic update script that would add/subtract the table based on updated variables.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to replace the dyanmic update method would be extremely helpful!!&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, 12 Oct 2016 21:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193955#M626169</guid>
      <dc:creator />
      <dc:date>2016-10-12T21:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193956#M626171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try bringing the if statement within the Sum and see what happens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Multi&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;*(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;KM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;/100)&lt;BR /&gt;*(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Alberta486',300,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016British_Columbia486',122,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Saskatchewan486',80,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Quebec486',3,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Northwest_Territories486',0,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Ontario486',3,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Manitoba486',40,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016New_Brunswick486',0,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='ConstructionGas2016Nova_Scotia486',0,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;='ConstructionGas2016Yukon486',0,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10))))))))))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193956#M626171</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-12T23:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193957#M626174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Sunny is right - here a small adjustment to his suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Multi&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;*(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;KM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/100) &lt;BR /&gt; *&lt;STRONG&gt;(pick(match(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PhaseTypeYearProvinceNAICS&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 'ConstructionGas2016Alberta486', 'ConstructionGas2016British_Columbia486', 'ConstructionGas2016Saskatchewan486','ConstructionGas2016Quebec486','ConstructionGas2016Northwest_Territories486','ConstructionGas2016Ontario486', 'ConstructionGas2016Manitoba486','ConstructionGas2016New_Brunswick486','ConstructionGas2016Nova_Scotia486','ConstructionGas2016Yukon486', '&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;*'),&lt;BR /&gt; $(v1), $(v2), $(v3), $(v4), $(v5), $(v6), $(v7), $(v8), $(v9), $(v10), $(v11))&lt;/SPAN&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, 13 Oct 2016 06:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193957#M626174</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-13T06:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193958#M626176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Sunny's suggestion is working now.&amp;nbsp; Thank you very much!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus, I have never seen that formula before.&amp;nbsp; After looking at it, it makes sense to me though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this run faster than having all the nested if statements? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One reason I like the nested if statements is that I can set a final else-if statement for all other rows in that column to go to zero without having to write in all 600 formulas for each row in like it seems I would have to do with the pick match method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193958#M626176</guid>
      <dc:creator />
      <dc:date>2016-10-13T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193959#M626178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pick is usually better to understand, smaller in length and you can def. set a final false condition like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match(FieldName, 'Value1', 'Value2') + 1, 'FalseValue', 'TrueValue1', 'TrueValue2')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is equivalent to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(FieldName = 'Value1', 'TrueValue1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Fieldname = 'Value2', 'TrueValue2', 'FalseValue'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193959#M626178</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T16:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193960#M626180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pick(match()) will definitely be faster than a nested if-loop which calculates at first all branches (no break after the first true-result like in other tools) and evaluates afterwards which branch contained the true-value. I'm not sure how match() will be processed but you save at least the condition-part which will be executed only once.&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, 13 Oct 2016 17:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193960#M626180</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-13T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193961#M626182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up going with the pick match method because I also hit the nested if loop maximum.&amp;nbsp; It was roughly around 100 - figured it after removing several at a time until it worked - and I needed about 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick match is working perfectly!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, very much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193961#M626182</guid>
      <dc:creator />
      <dc:date>2016-10-14T14:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193962#M626183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem again.&amp;nbsp; I have updated all my expressions, and when double checking the functionality the charts no longer update when changing the variable now that I am using the Pick Match method it seems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression includes this variable:&lt;/P&gt;&lt;P&gt;$(ceDemandGasConstruction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which in turn is defined in my script as:&lt;/P&gt;&lt;P&gt;SET ceDemandGasConstruction = sum(Multi*(KM/100)*(Pick(Match(PhaseTypeYearProvinceNAICS,&lt;/P&gt;&lt;P&gt;'ConstructionGas2015Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2016Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2017Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2018Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2019Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2020Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2021Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2022Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2023Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2024Alberta486',&lt;/P&gt;&lt;P&gt;'ConstructionGas2025Alberta486',&lt;/P&gt;&lt;P&gt;'*'),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2015Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2016Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2017Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2018Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2019Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2020Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2021Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2022Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2023Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2024Alberta486),&lt;/P&gt;&lt;P&gt;$(KMConstructionGas2025Alberta486))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have input boxes with each of these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as stated, now the chart is not updating as the variables are updated.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193962#M626183</guid>
      <dc:creator />
      <dc:date>2016-10-17T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193963#M626184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample (with dummy data) to see the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193963#M626184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193964#M626185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a demonstration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated most accurately how I am doing it in my actual document.&amp;nbsp; For some reason it does not update when I use a variable to include the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 19:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193964#M626185</guid>
      <dc:creator />
      <dc:date>2016-10-17T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193965#M626186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use this as your variable definitation, it seems to be working fine. Isn't it?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(KM*Multi*Pick(Match(Multiply, 'Yes', '*'),&lt;SPAN style="color: #ff0000;"&gt; $(vYes)&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140904_Capture.PNG" style="height: 241px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193965#M626186</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T20:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193966#M626187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is working, but I just realized that I have the formula defined in the load statement so when I reload it - which is needed to be able to reset all the variables people will be changing - it sets the variable (the formula) as the number at the time of reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vExpression = &lt;STRONG&gt;Sum(KM*Multi*Pick(Match(Multiply, 'Yes', '*'),&lt;SPAN style="color: #ff0000;"&gt; vYes&lt;/SPAN&gt;));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it looks like it is working even after having it reloaded.&amp;nbsp;&amp;nbsp; Is there any downside to removing the $() from the variable that will be used for the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193966#M626187</guid>
      <dc:creator />
      <dc:date>2016-10-17T20:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193967#M626188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this particular case, there should not be any issue since you are using plain numbers. If you were using expression, then it might have caused you issue. But you can continue to use dollar sign expansion like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Multi, KM, Multiply&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 4, Yes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 6, No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 7, Yes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 3, No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vYes = 4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vNo = 2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Let&lt;/SPAN&gt; vExpression = &lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;Sum(KM*Multi*Pick(Match(Multiply, &lt;SPAN style="color: #ff0000;"&gt;''&lt;/SPAN&gt;Yes&lt;SPAN style="color: #ff0000;"&gt;''&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;''&lt;/SPAN&gt;*&lt;SPAN style="color: #ff0000;"&gt;''&lt;/SPAN&gt;), &lt;SPAN style="color: #ff0000;"&gt;$' &amp;amp; '&lt;/SPAN&gt;(vYes)))&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Two single quotes around Yes and * (they are not double quotes) used as &lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193967#M626188</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T20:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193968#M626189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the help again!!&amp;nbsp; Really appreciate it!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193968#M626189</guid>
      <dc:creator />
      <dc:date>2016-10-17T20:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying multiple variables against a field</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193969#M626190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that me and Marcus were able to help you out.&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>Mon, 17 Oct 2016 21:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplying-multiple-variables-against-a-field/m-p/1193969#M626190</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T21:14:17Z</dc:date>
    </item>
  </channel>
</rss>

