<?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: Set dimension columns as the current and the previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947798#M968651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try use these expressions in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CurrentYear&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Year = {"=$(=Max(Year) )"}&amp;nbsp; &amp;gt;} Amount )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PreviousYear&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Year = {"=$(=Max(Year)-1 )"}&amp;nbsp; &amp;gt;} Amount )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 08:27:53 GMT</pubDate>
    <dc:creator>teiswamsler</dc:creator>
    <dc:date>2015-09-28T08:27:53Z</dc:date>
    <item>
      <title>Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947789#M968636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have such problem. I want to show in Straight Table on rows values such as amount, income and some other variables. On columns I want to have &lt;STRONG&gt;year = vMaxYear&lt;/STRONG&gt; as &lt;STRONG&gt;CurrentYear&lt;/STRONG&gt; and &lt;STRONG&gt;year=vPriorYear&lt;/STRONG&gt; as &lt;STRONG&gt;PreviousYear&lt;/STRONG&gt;, where &lt;STRONG&gt;vMaxYear&lt;/STRONG&gt; is the max available year and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;vPriorYear&lt;/STRONG&gt;&lt;/SPAN&gt; as &lt;STRONG&gt;vMaxYear-1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I simple do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I have conditional in column expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14434231801349410" jivemacro_uid="_14434231801349410"&gt;
&lt;P&gt;=if([Year]=$(vMaxYear),'Current year',if([Year]=$(vPriorYear),'Previous year',Null))&lt;/P&gt;







&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it show only two columns when these two years are in data. When there is only one (like now, 2015), it shows only one column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;What I need? -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;would like always to show data for current year and previous year, even the previous year is not present in data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Furthermore this conditional doesn't work if I choose any year in filter (there will be only one column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;Edit2:&lt;/P&gt;&lt;P&gt;When I have chosen 2015 &lt;SPAN style="font-size: 13.3333330154419px;"&gt;year (in data I have 2014 and 2015)&lt;/SPAN&gt;, it should looks like:&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Previous year&amp;nbsp; |&amp;nbsp; Current year&lt;/P&gt;&lt;P&gt;amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;income&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;costs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&lt;/P&gt;&lt;P&gt;gain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;EM&gt;Gain&lt;/EM&gt; is for me &lt;EM&gt;income-costs&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Now it is only second column. When I choose 2014, there should be first column with zeros and second like this first above (but now it is only one - with data from 2014 in &lt;EM&gt;Current year&lt;/EM&gt; column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. sorry for my grammar &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;Edit3:&lt;/P&gt;&lt;P&gt;Finally I add some example in .qvw &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947789#M968636</guid>
      <dc:creator />
      <dc:date>2015-09-28T06:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947790#M968637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you're trying to do. Are you trying to display information that does not exist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947790#M968637</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-28T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947791#M968638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika,&lt;/P&gt;&lt;P&gt;If I understand your concern partially..&lt;/P&gt;&lt;P&gt;You would like to show data for current year and previous year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data is not present in previous year, you still want to show the column as static..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please clarify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947791#M968638</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-28T07:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947792#M968639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's what I am saying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947792#M968639</guid>
      <dc:creator />
      <dc:date>2015-09-28T07:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947793#M968641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A href="https://community.qlik.com/qlik-users/146301"&gt;jaaldurgam&lt;/A&gt;‌ wrote: I &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;would like always to show data for current year and previous year, even the previous year is not present in data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947793#M968641</guid>
      <dc:creator />
      <dc:date>2015-09-28T07:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947794#M968643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no direct workaround here... but with set analysis we can get the desired result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a fact for previous year sales and lets say have an expression like (Sum{1} PreviousYear) and hide this so even though you don't have data for the previous year, you can still get the column visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947794#M968643</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-28T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947795#M968645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answer.&lt;/P&gt;&lt;P&gt;Have you read, what I added to question? I wrote: "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;this &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;conditional doesn't work if I choose any year in filter&lt;/SPAN&gt;". Will your solution also fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not quite sure where should I do these changes which you describe. I should create fact as a variable and then I should add expression &lt;SPAN style="font-size: 13.3333330154419px;"&gt;in my table?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947795#M968645</guid>
      <dc:creator />
      <dc:date>2015-09-28T07:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947796#M968647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share output format having 3-4 sample rows of data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947796#M968647</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-28T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947797#M968649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've edited my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947797#M968649</guid>
      <dc:creator />
      <dc:date>2015-09-28T08:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947798#M968651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try use these expressions in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CurrentYear&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Year = {"=$(=Max(Year) )"}&amp;nbsp; &amp;gt;} Amount )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PreviousYear&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Year = {"=$(=Max(Year)-1 )"}&amp;nbsp; &amp;gt;} Amount )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947798#M968651</guid>
      <dc:creator>teiswamsler</dc:creator>
      <dc:date>2015-09-28T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947799#M968653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like attached sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947799#M968653</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-28T08:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947800#M968655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice solution, but not good enough (as for my problem I think).&lt;/P&gt;&lt;P&gt;In my problem I have variables (values) on rows (as expressions) and dimensions (previous and current year) on columns. In your solution is inversely - values are as dimensions and years as expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947800#M968655</guid>
      <dc:creator />
      <dc:date>2015-09-28T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947801#M968657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use your solution I would have to do [2 * amount_of_my_variables] expressions. Then I also couldn't show them in two columns, because I would have to have every expression in one column (I see no other use). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947801#M968657</guid>
      <dc:creator />
      <dc:date>2015-09-28T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947802#M968658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Monika, for giving us different scenario to work upon so that we can learn by the process. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; Could you post your sample qvw? Let us try to come up with a &lt;EM&gt;good-enough&lt;/EM&gt; resolution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947802#M968658</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-28T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947803#M968659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should do such example as a first thing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; I added .qvw file to my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 09:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947803#M968659</guid>
      <dc:creator />
      <dc:date>2015-09-28T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947804#M968660</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;expressions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum( {&amp;lt; Year = {"=$(=Max(year) )"}&amp;nbsp; &amp;gt;} Amount ) Lable: current year sales&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum( {&amp;lt; Year = {"=$(=Max(year)-1 )"}&amp;nbsp; &amp;gt;} Amount ) Lable: previous year sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 09:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947804#M968660</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-09-28T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947805#M968661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example. Does that do what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 09:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947805#M968661</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-28T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947806#M968662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly. I can't change the showing value of dimension (as I said earlier, I want &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Previous year&lt;/EM&gt; and &lt;EM&gt;Current year&lt;/EM&gt; instead of years in dimension). The value gain is also bad calculating (it should be &lt;EM&gt;income - cost, &lt;/EM&gt;but it is not) and when I change it to this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14436791466904587 jive_text_macro" jivemacro_uid="_14436791466904587" modifiedtitle="true"&gt;
&lt;P&gt;SUM({&amp;lt;Year={$(=max(Year)-1),$(=max(Year))}&amp;gt;}Income)-SUM({&amp;lt;Year={$(=max(Year)-1),$(=max(Year))}&amp;gt;}Cost)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem with disappearing years returned again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947806#M968662</guid>
      <dc:creator />
      <dc:date>2015-10-01T06:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947807#M968663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid I don't understand what you want. Please post an excel file with the result table you want as end result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947807#M968663</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-01T06:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set dimension columns as the current and the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947808#M968664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used before: &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14436808934092360" jivemacro_uid="_14436808934092360"&gt;
&lt;P&gt;=if([Year]=$(vMaxYear),'Current year',if([Year]=$(vPriorYear),'Previous year',Null()))&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;as Dimension to get proper name in column. You used just "Year" in your example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result table which I want is in attached excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-dimension-columns-as-the-current-and-the-previous-year/m-p/947808#M968664</guid>
      <dc:creator />
      <dc:date>2015-10-01T06:31:30Z</dc:date>
    </item>
  </channel>
</rss>

