<?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: How to insert YEAR into a table with YoY Calculation? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-insert-YEAR-into-a-table-with-YoY-Calculation/m-p/1938649#M77352</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163577"&gt;@aresb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two approaches that you might want to take.&lt;/P&gt;
&lt;P&gt;One is to have the Year as a measure rather than a dimension. You can create it like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=max(Year)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The other approach, and I would probably tend towards this, is rather than having a new column with the year in, use the fact that you can have a dynamic column header to stamp the year.&amp;nbsp; In the &lt;STRONG&gt;Label&lt;/STRONG&gt; of the measure have something like&amp;nbsp;&lt;STRONG&gt;='Sales ' &amp;amp; max(Year)&lt;/STRONG&gt; and for the other&amp;nbsp;&lt;STRONG&gt;='Sales ' &amp;amp; (max(Year)-1)&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 22:04:17 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2022-06-01T22:04:17Z</dc:date>
    <item>
      <title>How to insert YEAR into a table with YoY Calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-insert-YEAR-into-a-table-with-YoY-Calculation/m-p/1938374#M77343</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;i'm stucked with a set expression problem.&lt;/P&gt;
&lt;P&gt;I've created two measures, let's call them SelectedYearMeasure and PreviousYearMeasure, that i've correctly replicated in my model.&lt;/P&gt;
&lt;P&gt;I'm working on the year column of my mastercalendar table.&lt;/P&gt;
&lt;P&gt;The problem is that, if I try to add Year as a column in my table, i get a doubled row, one for the year selected and one for the previous year.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Year.png" style="width: 976px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80801iBBE507BD60A8758F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik_Year.png" alt="Qlik_Year.png" /&gt;&lt;/span&gt;Is there any possibility to avoid this behaviour, just having selected year row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-insert-YEAR-into-a-table-with-YoY-Calculation/m-p/1938374#M77343</guid>
      <dc:creator>aresb</dc:creator>
      <dc:date>2022-06-01T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert YEAR into a table with YoY Calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-insert-YEAR-into-a-table-with-YoY-Calculation/m-p/1938649#M77352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163577"&gt;@aresb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two approaches that you might want to take.&lt;/P&gt;
&lt;P&gt;One is to have the Year as a measure rather than a dimension. You can create it like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=max(Year)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The other approach, and I would probably tend towards this, is rather than having a new column with the year in, use the fact that you can have a dynamic column header to stamp the year.&amp;nbsp; In the &lt;STRONG&gt;Label&lt;/STRONG&gt; of the measure have something like&amp;nbsp;&lt;STRONG&gt;='Sales ' &amp;amp; max(Year)&lt;/STRONG&gt; and for the other&amp;nbsp;&lt;STRONG&gt;='Sales ' &amp;amp; (max(Year)-1)&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 22:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-insert-YEAR-into-a-table-with-YoY-Calculation/m-p/1938649#M77352</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2022-06-01T22:04:17Z</dc:date>
    </item>
  </channel>
</rss>

