<?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 YTD Comparison in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1854971#M70571</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I need help with the following:&lt;/P&gt;
&lt;P&gt;I need to do an YTD comparison in Qlik Sense. So far I have created a flag for the current year and the previous year and using the flag I am comparing the current year sales with the previous one. If I select&amp;nbsp; specific dates it will work again.&lt;/P&gt;
&lt;P&gt;Now my question is the following - I have full 2020 data but for 2021 I have until the last day of the previous month (30th of October) so if I compare 2021 with 2020, I am actually comparing unfinished year (2021) with a finished one (2020) and this should not be the case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I make Qlik understand that I want to compare the current year with the previous year, but only until the date I have available for the current year (in this case 30th of October).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas will be helpful! Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 07:49:13 GMT</pubDate>
    <dc:creator>ShellyG</dc:creator>
    <dc:date>2021-11-03T07:49:13Z</dc:date>
    <item>
      <title>YTD Comparison</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1854971#M70571</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I need help with the following:&lt;/P&gt;
&lt;P&gt;I need to do an YTD comparison in Qlik Sense. So far I have created a flag for the current year and the previous year and using the flag I am comparing the current year sales with the previous one. If I select&amp;nbsp; specific dates it will work again.&lt;/P&gt;
&lt;P&gt;Now my question is the following - I have full 2020 data but for 2021 I have until the last day of the previous month (30th of October) so if I compare 2021 with 2020, I am actually comparing unfinished year (2021) with a finished one (2020) and this should not be the case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I make Qlik understand that I want to compare the current year with the previous year, but only until the date I have available for the current year (in this case 30th of October).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas will be helpful! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 07:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1854971#M70571</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-11-03T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Comparison</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1855505#M70607</link>
      <description>&lt;P&gt;Hi ShellyG,&lt;/P&gt;
&lt;P&gt;how do you want to display this comparison? In a straight Table, in a Bar Chart or a Line Chart?&lt;/P&gt;
&lt;P&gt;To get the same date for last year you could use the MakeDate Function like this:&lt;/P&gt;
&lt;P&gt;MakeDate(Year(Today()-1) to get the first day of last year and MonthEnd(MakeDate(Year(Today())-1,Month(Today())-1, 1)) to get the last day of your previous month in last year.&lt;/P&gt;
&lt;P&gt;You can put each formula in a variable and use them in your calculations.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1855505#M70607</guid>
      <dc:creator>canerkan</dc:creator>
      <dc:date>2021-11-04T12:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Comparison</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1859171#M70920</link>
      <description>&lt;P&gt;Hi Can,&lt;/P&gt;
&lt;P&gt;Thanks for your reply!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would work, but unfortunately not fully as I am comparing fiscal periods, which means that in these cases 15th of November this year, might not be the same as 15th of November last year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shelly&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 07:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Comparison/m-p/1859171#M70920</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-11-15T07:33:37Z</dc:date>
    </item>
  </channel>
</rss>

