<?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 Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables/m-p/526704#M196843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;What is the difference between below two expressions we used while declaring any variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;vMaxInvYear01&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;=Year(Max([Invoice Date])) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;vMaxInvYear02&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Year(Max([Invoice Date])) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Now if I want to sum qty how can I achieve using both of the above variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;SUM({&amp;lt;Year = 1st Variable&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;SUM({&amp;lt;Year = 2nd Variable&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;If possible, please explain with a good example....!!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 11:59:47 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2013-10-08T11:59:47Z</dc:date>
    <item>
      <title>Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/526704#M196843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;What is the difference between below two expressions we used while declaring any variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;vMaxInvYear01&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12.0pt;"&gt;&lt;STRONG&gt;=Year(Max([Invoice Date])) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;vMaxInvYear02&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Variable Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000; font-size: 12.0pt;"&gt;&lt;STRONG&gt;Year(Max([Invoice Date])) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Now if I want to sum qty how can I achieve using both of the above variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;SUM({&amp;lt;Year = 1st Variable&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;SUM({&amp;lt;Year = 2nd Variable&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;If possible, please explain with a good example....!!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 11:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/526704#M196843</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-08T11:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/526705#M196844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First variable can be used as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;SUM({&amp;lt;Year = {$(&lt;STRONG style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: blue;"&gt;vMaxInvYear01&lt;/STRONG&gt;)}&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;Whereas second variable can be used as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;SUM({&amp;lt;Year = {&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;$(=&lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: blue;"&gt;vMaxInvYear01&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;)&lt;/SPAN&gt;}&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/526705#M196844</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-10-08T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/526706#M196845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; SUM(&lt;SPAN style="font-size: 12.0pt;"&gt;{&amp;lt;Year = &lt;/SPAN&gt;{"=$(=&lt;STRONG style="color: blue; font-size: 12.0pt;"&gt;vMaxInvYear01&lt;/STRONG&gt;)"} &lt;SPAN style="font-size: 12.0pt;"&gt;&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM(&lt;SPAN style="font-size: 12.0pt;"&gt;{&amp;lt;Year = &lt;/SPAN&gt;{"=$(=&lt;STRONG style="color: #c00000; font-size: 12.0pt;"&gt;vMaxInvYear02&lt;/STRONG&gt;)"} &lt;SPAN style="font-size: 12.0pt;"&gt;&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/526706#M196845</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-08T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/526707#M196846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;both variable having same value max year from your Year Field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;if you have selected three years in Year List like 2006, 2007, 2008, then the variable will have 2008,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;if u did not make selection in Year Field then it will have last year from your Year list, might be 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;try like below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;=SUM({&amp;lt;Year = {$(=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-style: inherit; font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;vMaxInvYear01&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;)}&amp;gt;} QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/526707#M196846</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-08T12:10:59Z</dc:date>
    </item>
  </channel>
</rss>

