<?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: Restricting a Dim Year value to max 2 values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010337#M973213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No dimension:&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year : Sum({&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;year={'$(=Max(year) -1)'&lt;/SPAN&gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Previous Year : Sum({&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;year={'$(=Max(year))'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 06:25:52 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-09-10T06:25:52Z</dc:date>
    <item>
      <title>Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010331#M973207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having year as Dimension and want to restrict it upto max two values....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: say, I am having 2013,2014,2015,2016....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the base of selection of master calender it shud give me max two value, in common words like CY vs PY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can do it at dimension level??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balraj Ahlawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 05:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010331#M973207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T05:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010332#M973208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you want to create a variable for previous year and in chart you have to use that variable in expression&lt;/P&gt;&lt;P&gt;then create a input box and call that variable in the inbut box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 05:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010332#M973208</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-09-10T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010333#M973209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined a variable into Variable overview named VPY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now at dimension level I am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(year&amp;gt;=VPY, year)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not working&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010333#M973209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T06:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010334#M973210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define the variable like this: &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =(Max(year) - 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where the = sign is part of the variable defintion),&lt;/P&gt;&lt;P&gt;Then you can use it in the way you tried. If the defintion does not include the = sign, then you would need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(year &amp;gt;= $(VPY). ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010334#M973210</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-10T06:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010335#M973211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried this but no success..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010335#M973211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T06:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010336#M973212</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim : year&lt;/P&gt;&lt;P&gt;Expression: =sum({&amp;lt;year={'&amp;gt;=$(=Max(year) -1)&amp;lt;=$(=Max(year))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010336#M973212</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-09-10T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010337#M973213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No dimension:&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year : Sum({&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;year={'$(=Max(year) -1)'&lt;/SPAN&gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Previous Year : Sum({&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;year={'$(=Max(year))'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010337#M973213</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-09-10T06:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010338#M973214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use calculated dimension as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(Only({&amp;lt;year={"&amp;gt;=$(=max(year)-1)"}&amp;gt;}year),year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check suppress when values is NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010338#M973214</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-10T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010339#M973215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA. You nneded a preceding '=' in the variable definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010339#M973215</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-10T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010340#M973216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At expression level I have tried same and it was working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to try at Dimension level not expression level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010340#M973216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010341#M973217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not looking what you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want like CY vs PY at dimension level. Look at Jagan's suggest but those are at expression level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010341#M973217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010342#M973218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attachment I have given in below reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010342#M973218</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-10T07:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a Dim Year value to max 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010343#M973219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tresco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not showing like CY vs PY. For max value of year it is giving but not for rest of year's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls chk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-a-Dim-Year-value-to-max-2-values/m-p/1010343#M973219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T07:11:01Z</dc:date>
    </item>
  </channel>
</rss>

