<?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: Yearl Comparisson by using Moving Average in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2146322#M93271</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;yes because you should make accord to you need the main diea it show the varible will do the project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;BR /&gt;//Actual year&lt;BR /&gt;Count({&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayofyear )&amp;lt;=$(vActualDate )"}&amp;gt;} key_dossier )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;//Last Year&lt;/P&gt;
&lt;P&gt;/&lt;BR /&gt;Count(distinct {&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayLastYear )&amp;lt;=$(vActualDateLastYear)"}&amp;gt;} &amp;gt;}key_dossier)&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 14:36:15 GMT</pubDate>
    <dc:creator>TcnCunha_M</dc:creator>
    <dc:date>2023-12-11T14:36:15Z</dc:date>
    <item>
      <title>Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140645#M92746</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I have created a line chart which should show comparisson between 2023 2022 as a rolling average in percentage. I have used the following formula for it:&lt;/P&gt;
&lt;P&gt;(Count(distinct {&amp;lt;[dossierSubmitDate.autoCalendar.Year]={$(=(year(today())))}&amp;gt;}key_dossier)&lt;BR /&gt;-Count(distinct{&amp;lt;[dossierSubmitDate.autoCalendar.Year]={$(=(year(today())-1))}&amp;gt;}key_dossier))&lt;BR /&gt;/Count(distinct{&amp;lt;[dossierSubmitDate.autoCalendar.Year]={$(=(year(today())))}&amp;gt;}key_dossier)&lt;/P&gt;
&lt;P&gt;The problem I have is that November and December appears also in the line chart but as I haven't yet values for 2023 it causes me an unwanted peak.&lt;/P&gt;
&lt;P&gt;Could you please give me an advise where and how in my calculation I can give an exception that only comlpeted months should be considered?&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Carsten&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 07:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140645#M92746</guid>
      <dc:creator>SIDOC1</dc:creator>
      <dc:date>2023-11-23T07:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140675#M92753</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;This case you have to use DATE not Year, because year in a combination from Jan - Dec if make a set analysis like&lt;BR /&gt;Date {"&amp;gt;=01/01/2023&amp;lt;=YOUR_LATEST_DATE"}&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last year&amp;nbsp;Date {"&amp;gt;=01/01/2022&amp;lt;=YOUR_LATEST_DATE"(But pointing to last year)}&amp;nbsp; i.e&amp;nbsp;Last year&amp;nbsp;Date {"&amp;gt;=01/01/2022&amp;lt;=30/09/2022"}&amp;nbsp;&lt;BR /&gt;then it will work as expected&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 08:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140675#M92753</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2023-11-23T08:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140699#M92759</link>
      <description>&lt;P&gt;Thanks for your answer, but what I would like to avoid is to work with fixed dates as it should work flexible. For example when we are in 2024 it should automatically compare 2024 with 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Understanding your proposal right, I have to change the formula again.&lt;/P&gt;
&lt;P&gt;Isn't there any option to make this run autonomously?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 09:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140699#M92759</guid>
      <dc:creator>SIDOC1</dc:creator>
      <dc:date>2023-11-23T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140760#M92764</link>
      <description>&lt;P&gt;Yes, you can use variables to that&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;you can make a variable for the last year, like&lt;BR /&gt;vFirstDayofyear = YearStart(Today())&lt;/P&gt;
&lt;P&gt;vFirstDayLastYear =&amp;nbsp;AddMonths(YearStart(Today()),-12)&lt;BR /&gt;&lt;BR /&gt;vActualDate = Max(YOUR_DATE_FIELD)&lt;/P&gt;
&lt;P&gt;vActualDateLastYear = AddMonths(Max(YOUR_DATE_FIELD),-12)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;You expression will be 
(
//Actual year
Count({&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayofyear )&amp;lt;=$(vActualDate )"}&amp;gt;} key_dossier )

//Last Year 

Count({&amp;lt; key_dossier )
)
/
Count(distinct  {&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayLastYear )&amp;lt;=$(vActualDateLastYear)"}&amp;gt;} &amp;gt;}key_dossier)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2140760#M92764</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2023-11-23T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2146052#M93243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Sorry for coming back so late on this subject.&lt;/P&gt;
&lt;P&gt;I have tried to put your formula proposals into my diagram, but honestly the result is the same as I would simply use count(key_dossiers).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance for checking again my incident&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 06:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2146052#M93243</guid>
      <dc:creator>SIDOC1</dc:creator>
      <dc:date>2023-12-11T06:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2146322#M93271</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;yes because you should make accord to you need the main diea it show the varible will do the project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;BR /&gt;//Actual year&lt;BR /&gt;Count({&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayofyear )&amp;lt;=$(vActualDate )"}&amp;gt;} key_dossier )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;//Last Year&lt;/P&gt;
&lt;P&gt;/&lt;BR /&gt;Count(distinct {&amp;lt; YOUR_DATE_FIELD = {"&amp;gt;=$(vFirstDayLastYear )&amp;lt;=$(vActualDateLastYear)"}&amp;gt;} &amp;gt;}key_dossier)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 14:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2146322#M93271</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2023-12-11T14:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2152817#M93367</link>
      <description>&lt;P&gt;Sorry but this solution doesn't work the way I expect it.&lt;/P&gt;
&lt;P&gt;Anyway we could maybe re-start the thing a bit as I have already res-structured my formula to:&lt;/P&gt;
&lt;P&gt;rangesum(Above(count(distinct {&amp;lt;[messageSubmitDate.autoCalendar.Year]={$(=Year(Today()))}&amp;gt;} if([messageType]='Question' and [messageStatus]='CLSD' and wildmatch([messageFrom_partnerType],'*Requestor'), key_message)),0,12))/&lt;BR /&gt;rangesum(Above(count(distinct {&amp;lt;[messageSubmitDate.autoCalendar.Year]={$(=Year(Today())-1)}&amp;gt;} if([messageType]='Question' and [messageStatus]='CLSD' and wildmatch([messageFrom_partnerType],'*Requestor'), key_message)),0,12))-1&lt;/P&gt;
&lt;P&gt;I have in addition two formulas concentrating on Year -1 and Year -4.&lt;/P&gt;
&lt;P&gt;Generally I am quite happy with the formula and how it is working, but again I have the problem that I currently do not want to see the month of December or in other I do not want to see months which are not completetd&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 06:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2152817#M93367</guid>
      <dc:creator>SIDOC1</dc:creator>
      <dc:date>2023-12-14T06:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2152828#M93369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/255604"&gt;@SIDOC1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Small Suggestion, I think you can restrict the data at source end , Like create a flag and set&amp;nbsp;&lt;BR /&gt;if(date&amp;lt;today(),1,0), then filter only values with 1 , Then you will get the only the months which are completed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 06:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2152828#M93369</guid>
      <dc:creator>RamanaKumarChintalapati</dc:creator>
      <dc:date>2023-12-14T06:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Yearl Comparisson by using Moving Average</title>
      <link>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2153570#M93440</link>
      <description>&lt;P&gt;I haven't tried your idea yet, but anyhow I assume that with this still December 22, 21 and 19 would be shown in the diagram and would lead to a not wanted result.&lt;/P&gt;
&lt;P&gt;Although December 2023 is then null it will be compared to the other years still having an amount.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 13:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Yearl-Comparisson-by-using-Moving-Average/m-p/2153570#M93440</guid>
      <dc:creator>SIDOC1</dc:creator>
      <dc:date>2023-12-15T13:04:31Z</dc:date>
    </item>
  </channel>
</rss>

