<?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 Input Box and Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520177#M194355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On one of the tables that I have on the script I got the following calculation:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL&lt;/P&gt;&lt;P&gt;Resident XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand I have an input box on the tab where the user can enter a value and store in variable VV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to add a new column in the script to have the following&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL&lt;/P&gt;&lt;P&gt;LL * Variable(VV) as MM&lt;/P&gt;&lt;P&gt;Resident XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 19:46:48 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2013-11-13T19:46:48Z</dc:date>
    <item>
      <title>Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520177#M194355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On one of the tables that I have on the script I got the following calculation:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL&lt;/P&gt;&lt;P&gt;Resident XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand I have an input box on the tab where the user can enter a value and store in variable VV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to add a new column in the script to have the following&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL&lt;/P&gt;&lt;P&gt;LL * Variable(VV) as MM&lt;/P&gt;&lt;P&gt;Resident XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520177#M194355</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-13T19:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520178#M194356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL&lt;/P&gt;&lt;P&gt;LL * &lt;STRONG&gt;$(VV)&lt;/STRONG&gt; as MM&lt;/P&gt;&lt;P&gt;Resident XYZ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520178#M194356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-13T19:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520179#M194357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will not work as the variable is 0 when we load it at first then user will enter an amount on the variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mainly this new field will be dynamic based on the user input..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520179#M194357</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-13T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520180#M194358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Badr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you shouldn't use it in the load script.&amp;nbsp; Use it in the front end expressions (charts and other places where you can use expressions).&lt;/P&gt;&lt;P&gt;LL * &lt;STRONG&gt;VV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;LL * &lt;STRONG&gt;$(VV)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520180#M194358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-13T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520181#M194359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't explain it correctly.. it is more complex &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the table I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If(ID&amp;lt;&amp;gt;Previous(ID) and&amp;nbsp; Key - Key2=1,AA,&lt;/P&gt;&lt;P&gt;(peek(LL)+&amp;nbsp; (Var(VV)/4))&amp;nbsp;&amp;nbsp; + Peek(LL)) as LL,&lt;/P&gt;&lt;P&gt;Resident XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if i can do this inside a chart instead of on the script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520181#M194359</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-13T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520182#M194360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting...&amp;nbsp; you want your field to return expression which contains variable...&amp;nbsp; Is it correct?&lt;/P&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;LL,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(ID&amp;lt;&amp;gt;Previous(ID), AA,&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // returns number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; peek('LL')&amp;nbsp; &amp;amp; '+($' &amp;amp; '(VV)/4) +' &amp;amp;&amp;nbsp;&amp;nbsp; Peek('LL')) as MM&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; // returns expression text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RESIDENT XYZ&lt;/P&gt;&lt;P&gt;ORDER BY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the value of the MM field using dollar-sign extension, like &lt;STRONG&gt;$(=MM)&lt;/STRONG&gt;.&amp;nbsp; Not sure about the details, give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 21:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520182#M194360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-13T21:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520183#M194361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is returning the value in the field as follow&amp;nbsp;&amp;nbsp; 4+$(VV)/4) +4 which is great..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to present it in a chart so I used the following formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(VV)=0,Sum(LL),Sum($(=MM)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your thought and thxs for all your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 05:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520183#M194361</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-14T05:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520184#M194362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 06:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520184#M194362</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-14T06:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520185#M194363</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;Attached is a copy of the QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value that I am trying to show is inside the blue text box. It works only if one Quarter is selected while I needed to work for all of them so i can put it in a chart..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520185#M194363</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-14T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520186#M194364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Any body can help on this.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs so much!&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Calculations/m-p/520186#M194364</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-11-14T22:29:19Z</dc:date>
    </item>
  </channel>
</rss>

