<?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 Using a variable with field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219748#M72733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{&amp;lt;[FINISHMONTH] = {'$(#vCurrentMonth)'}, [FINISH_YEAR] = {'$(vCurrentYear)'}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 08:39:53 GMT</pubDate>
    <dc:creator>maneshkhottcpl</dc:creator>
    <dc:date>2011-02-17T08:39:53Z</dc:date>
    <item>
      <title>Using a variable with field without any aggregation functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219747#M72732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Imagine if the field name is ABC which contains sales value. I want to calculate the sale of the CurrentYear and CurrentMonth. So I have created 2 variables, one to calculate the CurrentYear(vCurrentYear) and other to calculate the CurrentMonth(vCurrentMonth).&lt;/P&gt;&lt;P&gt;Currently in expression, I have put 'ABC' as it is the field name.&lt;/P&gt;&lt;P&gt;I want to do his I want to pass this variable in to the expression so that it gives the sales of the CurrentYear and CurrentMonth. Below variable works fine in if condition. How could I use that without any if condition or (Sum or Count).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;{&amp;lt;[FINISHMONTH] = {'$(vCurrentMonth)'}, [FINISH_YEAR] = {'$(vCurrentYear)'}&amp;gt;}&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What I mean to say is that&lt;/P&gt;&lt;P&gt;In expression it is: ABC&lt;/P&gt;&lt;P&gt;I want to pass the above variable with that so that it gives the sales of the CurrentYear and CurrentPeriod.&lt;/P&gt;&lt;P&gt;I did some like below in the expression. (I know it doesn't work like that. Just copied for your understanding what exactly I wants.)&lt;/P&gt;&lt;P&gt;Expression: {&amp;lt;[FINISHMONTH] = {'$(vCurrentMonth)'}, [FINISH_YEAR] = {'$(vCurrentYear)'}&amp;gt;}ABC&lt;/P&gt;&lt;P&gt;Hope that some one can help me out on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 07:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219747#M72732</guid>
      <dc:creator />
      <dc:date>2011-02-17T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Using a variable with field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219748#M72733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{&amp;lt;[FINISHMONTH] = {'$(#vCurrentMonth)'}, [FINISH_YEAR] = {'$(vCurrentYear)'}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219748#M72733</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-17T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Using a variable with field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219749#M72734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please send me the complete code. You didn't pass ABC field with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-with-field-without-any-aggregation-functions/m-p/219749#M72734</guid>
      <dc:creator />
      <dc:date>2011-02-17T08:45:01Z</dc:date>
    </item>
  </channel>
</rss>

