<?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: Variables with parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643118#M235652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;correct, but i seems that S&lt;SPAN style="color: #3d3d3d; font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"&gt;et Analysis will only get evaluated once for your objects, it does not get evaluated for every single row.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 19:30:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-06T19:30:11Z</dc:date>
    <item>
      <title>Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643109#M235643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a table with a variable with parameter. For example, i have the dimension year, and a variable that calculate the sales&lt;/P&gt;&lt;P&gt;of each year vSalesperYear($(variable1)), the thing is that the value of variable1 depends on de dimension year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine this is a qlikview table with dimension year and expresion $(variable1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp; variable1&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a table with dimension year and expression vSalesPerYear($(variable1)). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643109#M235643</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643110#M235644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to accomplish with these variables? You might be able to accomplish your goal without using variables. Can you explain what your end goal is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 16:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643110#M235644</guid>
      <dc:creator />
      <dc:date>2014-06-06T16:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643111#M235645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use variables only to use the expression i many graphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without using variables would be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;idDate={"expresion that calculate the id"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the expression that calculate the id depends on the dimension year, and the table i want to create have year&lt;/P&gt;&lt;P&gt;as a dimension, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;so i want that the expression that calculate the id, changes with the diferrentes values of year in my table &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643111#M235645</guid>
      <dc:creator />
      <dc:date>2014-06-06T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643112#M235646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any chance you could share your qvw? It would help in giving you a specific answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643112#M235646</guid>
      <dc:creator />
      <dc:date>2014-06-06T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643113#M235647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry, i cant.&amp;nbsp; Confidential information of my company.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643113#M235647</guid>
      <dc:creator />
      <dc:date>2014-06-06T17:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643114#M235648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the "expression that calculates the id"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643114#M235648</guid>
      <dc:creator />
      <dc:date>2014-06-06T17:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643115#M235649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is any expresion for example min(iddate), the important things is that the expression changes with the diferrent values of the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(iddate)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum({&amp;lt;idDate={"min(iddate"}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum({&amp;lt;idDate={"1"}&amp;gt;}sales) i want the result of this exprresion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum({&amp;lt;idDate={"3"}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643115#M235649</guid>
      <dc:creator />
      <dc:date>2014-06-06T17:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643116#M235650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saying you want to dynamically change which expression will calculate the value of a particular variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 18:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643116#M235650</guid>
      <dc:creator />
      <dc:date>2014-06-06T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643117#M235651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;idDate = {min(iddate from a certain year)&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 18:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643117#M235651</guid>
      <dc:creator />
      <dc:date>2014-06-06T18:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643118#M235652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;correct, but i seems that S&lt;SPAN style="color: #3d3d3d; font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"&gt;et Analysis will only get evaluated once for your objects, it does not get evaluated for every single row.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643118#M235652</guid>
      <dc:creator />
      <dc:date>2014-06-06T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643119#M235653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try sum(if(idDate = min({&amp;lt;Year =&amp;gt;}idDate), Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure this is exactly right, but if you want to include a dimension in your calculation I believe you must use an if statement within your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post for help as well: &lt;A href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 20:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-parameters/m-p/643119#M235653</guid>
      <dc:creator />
      <dc:date>2014-06-06T20:02:11Z</dc:date>
    </item>
  </channel>
</rss>

