<?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 Declaring multiplw values in variables or using frontend variables for calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283142#M851499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, i have a requiremnt where qlikview is unable to handle this. I have a variable say Vsales I have a front end input box in which im using this variable User can enter any value in the input box from 1 to 100 And the calculation im doing at the backend for this is sum (sales)*Vsales/100 as new_slaes This new_sales is my base data on top of it i have a lot calculations to be done Qlikview is unable to hadle it and i giess qlikview has a disadvante over other tools over here I even tried of declaring 1 to 100 numbers in this variable in the script and unable to achieve this Does qlikview cnnot handle thos kind of requirements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283142#M851499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, i have a requiremnt where qlikview is unable to handle this. I have a variable say Vsales I have a front end input box in which im using this variable User can enter any value in the input box from 1 to 100 And the calculation im doing at the backend for this is sum (sales)*Vsales/100 as new_slaes This new_sales is my base data on top of it i have a lot calculations to be done Qlikview is unable to hadle it and i giess qlikview has a disadvante over other tools over here I even tried of declaring 1 to 100 numbers in this variable in the script and unable to achieve this Does qlikview cnnot handle thos kind of requirements&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/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283142#M851499</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283143#M851500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a reason why QlikView should not be able to handle 100 variables. Would you be able to share a sample where it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 18:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283143#M851500</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-28T18:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283144#M851501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In R you can use like you mentioned -- &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum (sales)*Vsales/100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But qlikview need to know which is variable should use $(Vsales) then qlik capture&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 notepads with all variables around each file showing 8 MB. I am sure it should more than 100 Variables or it may cross to 500 Variables too. My client didn't face any issue still i am using variables. May be behavior running in patch filed. Check and confirm the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 02:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283144#M851501</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-01T02:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283145#M851502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my actual code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintable:&lt;/P&gt;&lt;P&gt;load * inline&lt;BR /&gt;[&lt;/P&gt;&lt;P&gt;Emp_id,sales,purchases&lt;BR /&gt;1,100,250&lt;BR /&gt;2,300,450&lt;BR /&gt;4,190,74&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;Emp_id,&lt;BR /&gt;(sum(DISTINCT sales)) as CA1,&lt;BR /&gt;(sum(DISTINCT purchases)) as CB1&lt;BR /&gt;Resident Maintable&lt;/P&gt;&lt;P&gt;Group by Emp_id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Vpercent=30;(here i want 10 20&amp;nbsp; 40 50 60 70 80 90 100 as well&amp;nbsp; i want to multiply my sales with all these values so my variable&amp;nbsp; Vpercent should hold all the values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;BR /&gt;Emp_id,&lt;BR /&gt;CA1*$(Vpercent)/100 as C11,&lt;BR /&gt;CB1*$(Vpercent)/100 as C12,&lt;BR /&gt;Resident &lt;BR /&gt;Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my actual requirement is i have a input box in the front end where user can iput any input values&lt;/P&gt;&lt;P&gt;say if user has given value 20 then 20 % of my sales will come and this will be my base data and on top of this there will be more calculations &lt;/P&gt;&lt;P&gt;which i cnanot do with this iput box variable approach &lt;/P&gt;&lt;P&gt;can input field be useful herre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 07:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283145#M851502</guid>
      <dc:creator />
      <dc:date>2017-03-01T07:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283146#M851503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application that has around 600 variables and it works fine without any problems (but can be a bit slower to save). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 08:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283146#M851503</guid>
      <dc:creator />
      <dc:date>2017-03-01T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring multiplw values in variables or using frontend variables for calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283147#M851504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think the OP is questioning the number of variables? Unless I am mistaken?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the OP wants to apply a variable in a script to produce the base data and then reload from here.&lt;/P&gt;&lt;P&gt;The only way to do this would be to allow the user to set the variable and then allow them to reload the document, via desktop this is easy but via the server it is not so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you suggesting you want to generate columns for each of the percentages 1-100? if so then you can use this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14883589868365709" jivemacro_uid="_14883589868365709"&gt;
&lt;P&gt;Maintable:&lt;/P&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Emp_id,sales,purchases&lt;/P&gt;
&lt;P&gt;1,100,250&lt;/P&gt;
&lt;P&gt;2,300,450&lt;/P&gt;
&lt;P&gt;4,190,74&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Emp_id,&lt;/P&gt;
&lt;P&gt;(sum(DISTINCT sales)) as CA1,&lt;/P&gt;
&lt;P&gt;(sum(DISTINCT purchases)) as CB1&lt;/P&gt;
&lt;P&gt;Resident Maintable&lt;/P&gt;
&lt;P&gt;Group by Emp_id;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i=1 to 100&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Concatenate (Table)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Emp_id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CA1*$(i)/100 as 'CA1$(i)',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CB1*$(i)/100 as 'CB1$(i)'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident Table;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;next i;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't see the reason why this can't be done in the front end, please see the attached example for some ideas, but without knowing your requirements it is hard to advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-multiplw-values-in-variables-or-using-frontend/m-p/1283147#M851504</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-01T09:03:18Z</dc:date>
    </item>
  </channel>
</rss>

