<?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: calculations using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculations-using-variables/m-p/821255#M1018078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this &lt;A href="https://community.qlik.com/thread/134765"&gt;current vs previous quarter sales&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 15:18:12 GMT</pubDate>
    <dc:creator>mjayachandran</dc:creator>
    <dc:date>2015-03-30T15:18:12Z</dc:date>
    <item>
      <title>calculations using variables</title>
      <link>https://community.qlik.com/t5/QlikView/calculations-using-variables/m-p/821254#M1018077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i have the list box for calendaryearquarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;also i have calendar years 2014, 2015&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i have set variables for current quarter &amp;amp; previous quarters as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vPreviousQtr= if(GetSelectedCount(CalendarYearQuarter)&amp;lt;&amp;gt;1,'' &amp;amp;if(RIGHT(CalendarYearQuarter,1)=1,LEFT(CalendarYearQuarter,4)-1 &amp;amp; ' Q4' ,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LEFT(CalendarYearQuarter,6)&amp;amp;(RIGHT(CalendarYearQuarter,1)-1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxQuarter=YEAR(MAX(DATE)) &amp;amp; ' Q' &amp;amp; MAX(CEIL(Month/3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;there are some sales amount for every quarter which is in a chart&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;when i select on a particular quarter, it should display the current quarter name in one chart &amp;amp; previous quarter name in another chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i.e., for ex if i select Q2, one chart will have Q2 &amp;amp; other will have Q!.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for all the quarters except Q1, its working fine. if i click on Q1 2015, it should display 2014 Q4 as well. but it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please give some suggestions to make it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculations-using-variables/m-p/821254#M1018077</guid>
      <dc:creator />
      <dc:date>2015-03-30T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: calculations using variables</title>
      <link>https://community.qlik.com/t5/QlikView/calculations-using-variables/m-p/821255#M1018078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this &lt;A href="https://community.qlik.com/thread/134765"&gt;current vs previous quarter sales&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculations-using-variables/m-p/821255#M1018078</guid>
      <dc:creator>mjayachandran</dc:creator>
      <dc:date>2015-03-30T15:18:12Z</dc:date>
    </item>
  </channel>
</rss>

