<?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: YTD expression not working in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725373#M55243</link>
    <description>&lt;P&gt;Can you please explain more ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should i create flag in calendar . This is my calendar in data model.&lt;/P&gt;&lt;P&gt;TMPDATE:&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;Min(%Key_Date) as MinDate,&lt;BR /&gt;Max(%Key_Date) as MaxDate&lt;BR /&gt;resident Data;&lt;BR /&gt;&lt;BR /&gt;LET vMinDate = floor(peek('MinDate'));&lt;BR /&gt;LET vMaxDate = floor(peek('MaxDate'));&lt;/P&gt;&lt;P&gt;drop table TMPDATE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ChampDate:&lt;BR /&gt;LOAD date($(vMinDate)+IterNo()-1) AS MaDate&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;WHILE $(vMinDate)+IterNo()-1&amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;// creation of the different components of our calendar&lt;BR /&gt;Calendar:&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MaDate as %Key_Date,&lt;BR /&gt;MaDate as Date,&lt;BR /&gt;Month(MaDate) as Date.Month,&lt;BR /&gt;num(Month(MaDate)) as Date.NumMonth,&lt;BR /&gt;MonthName(MaDate) as Date.MonthName,&lt;BR /&gt;MonthName(MaDate,-12) as Date.PreviousYearMonthName,&lt;BR /&gt;MonthName(MaDate,-1) as Date.PreviousMonthName,&lt;BR /&gt;MonthName(MaDate,+1) as Date.NextMonthName,&lt;BR /&gt;MonthName(MaDate,+2) as [Date.NextMonthName+1],&lt;BR /&gt;Year(MaDate) as Date.Year,&lt;BR /&gt;QuarterName(MaDate) as Date.QuarterName,&lt;BR /&gt;'Q'&amp;amp;ceil(num(Month(MaDate))/3)&amp;amp; ' ' &amp;amp; Year(MaDate) as Date.Quarter,&lt;BR /&gt;num(monthend(MaDate)) as Date.MonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,+1))) as Date.NextMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,+2))) as [Date.NextMonthEnd+1],&lt;BR /&gt;num(monthend(addmonths(MaDate,-1))) as Date.PreviousMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,-12))) as Date.PreviousYearMonthEnd,&lt;BR /&gt;num(monthend(YearStart(MaDate))) as Date.YearStart,&lt;BR /&gt;num(monthend(YearStart(AddYears(MaDate,-1)))) as Date.PreviousYearStart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident ChampDate;&lt;BR /&gt;drop table ChampDate;&lt;BR /&gt;//Delete the Data table that we used to retrieve the% Key_Date&lt;BR /&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also is there any other alternative to this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 13:33:34 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2020-07-06T13:33:34Z</dc:date>
    <item>
      <title>YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725350#M55235</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on the below situation:&lt;/P&gt;&lt;P&gt;I am calculating YTD in a KPI&lt;/P&gt;&lt;P&gt;Feild:- Date.MonthEnd&lt;/P&gt;&lt;P&gt;Formaula&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Indicateur.Code = {'PO.2.24'},[Date.MonthEnd]={"&amp;gt;=$(=Num(YearStart(max(Date.MonthEnd))))&amp;lt;=$(=num(Max(Date.MonthEnd))))"}&amp;gt;}[Indicateur.Value])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me the correct total value for all the years starting from jan 2020 till Apr2020 as i have data till Apr&lt;/P&gt;&lt;P&gt;But when i select any month from Date.MonthEnd Filter is not showing the cumulative value lie&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan2020 50&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feb 2020 50&lt;/P&gt;&lt;P&gt;So, KPI should show me 100 when i select Feb 2020 . however, the KPi is Populating the value for individual months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725350#M55235</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2024-11-16T01:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725370#M55242</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you use the same field for both the expression and the filter. When you select your field value, you have defined a new selection state and that is why you see only the value you selected and not the cumulative one.&lt;/P&gt;&lt;P&gt;You could create an index in your calendar and use a flag&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;InYearToDate .&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;Use this flag in your&amp;nbsp;expression and use your "Date.MonthEnd" field as you did, as a filter.&lt;/P&gt;&lt;P&gt;hope it helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 13:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725370#M55242</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2020-07-06T13:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725373#M55243</link>
      <description>&lt;P&gt;Can you please explain more ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should i create flag in calendar . This is my calendar in data model.&lt;/P&gt;&lt;P&gt;TMPDATE:&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;Min(%Key_Date) as MinDate,&lt;BR /&gt;Max(%Key_Date) as MaxDate&lt;BR /&gt;resident Data;&lt;BR /&gt;&lt;BR /&gt;LET vMinDate = floor(peek('MinDate'));&lt;BR /&gt;LET vMaxDate = floor(peek('MaxDate'));&lt;/P&gt;&lt;P&gt;drop table TMPDATE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ChampDate:&lt;BR /&gt;LOAD date($(vMinDate)+IterNo()-1) AS MaDate&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;WHILE $(vMinDate)+IterNo()-1&amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;// creation of the different components of our calendar&lt;BR /&gt;Calendar:&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MaDate as %Key_Date,&lt;BR /&gt;MaDate as Date,&lt;BR /&gt;Month(MaDate) as Date.Month,&lt;BR /&gt;num(Month(MaDate)) as Date.NumMonth,&lt;BR /&gt;MonthName(MaDate) as Date.MonthName,&lt;BR /&gt;MonthName(MaDate,-12) as Date.PreviousYearMonthName,&lt;BR /&gt;MonthName(MaDate,-1) as Date.PreviousMonthName,&lt;BR /&gt;MonthName(MaDate,+1) as Date.NextMonthName,&lt;BR /&gt;MonthName(MaDate,+2) as [Date.NextMonthName+1],&lt;BR /&gt;Year(MaDate) as Date.Year,&lt;BR /&gt;QuarterName(MaDate) as Date.QuarterName,&lt;BR /&gt;'Q'&amp;amp;ceil(num(Month(MaDate))/3)&amp;amp; ' ' &amp;amp; Year(MaDate) as Date.Quarter,&lt;BR /&gt;num(monthend(MaDate)) as Date.MonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,+1))) as Date.NextMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,+2))) as [Date.NextMonthEnd+1],&lt;BR /&gt;num(monthend(addmonths(MaDate,-1))) as Date.PreviousMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,-12))) as Date.PreviousYearMonthEnd,&lt;BR /&gt;num(monthend(YearStart(MaDate))) as Date.YearStart,&lt;BR /&gt;num(monthend(YearStart(AddYears(MaDate,-1)))) as Date.PreviousYearStart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident ChampDate;&lt;BR /&gt;drop table ChampDate;&lt;BR /&gt;//Delete the Data table that we used to retrieve the% Key_Date&lt;BR /&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also is there any other alternative to this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 13:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725373#M55243</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-07-06T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725402#M55252</link>
      <description>&lt;P&gt;Could it be that your are making selections in another calendar field than just [Date.MonthEnd]? If so then you need to cancel that selection with a modifier in your set. Like I've done for two of your calendar dimensions below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Indicateur.Code = {'PO.2.24'},&lt;STRONG&gt; [Date.Month] =, [Date.MonthName]=&lt;/STRONG&gt;,[Date.MonthEnd]={"&amp;gt;=$(=Num(YearStart(max(Date.MonthEnd))))&amp;lt;=$(=num(Max(Date.MonthEnd))))"}&amp;gt;}[Indicateur.Value])&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 14:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725402#M55252</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-07-06T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725421#M55256</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can add in your calendar a new row, like this:&lt;/P&gt;&lt;P class="syntax_heading"&gt;&lt;SPAN class="autonumber"&gt;&lt;SPAN&gt;....................................&lt;BR /&gt;num(monthend(YearStart(MaDate))) as Date.YearStart,&lt;BR /&gt;num(monthend(YearStart(AddYears(MaDate,-1)))) as Date.PreviousYearStart,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax_heading"&gt;&lt;FONT color="#99CC00"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber"&gt;If(InYearToDate(date([YOUR_DATE]),date(Today()),0,1)=-1,1,0) AS Date.YearToDate_flag,&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="syntax_heading"&gt;&lt;SPAN class="autonumber"&gt;&lt;SPAN&gt;Resident ChampDate;&lt;BR /&gt;drop table ChampDate;&lt;BR /&gt;//Delete the Data table that we used to retrieve the% Key_Date&lt;BR /&gt;DROP Table Data;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax_heading"&gt;&lt;SPAN class="autonumber"&gt;&lt;SPAN&gt;##Base Date would be any day of this year and period = 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax_heading"&gt;&lt;SPAN class="autonumber"&gt;&lt;SPAN&gt;Check Syntax:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/inyeartodate.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/inyeartodate.htm&lt;/A&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="script_token"&gt;InYearToDate (&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;timestamp, base_date, period_no[, first_month_of_year]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="statement"&gt;Then, you add this flag in your expression on the user interface.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="statement"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber"&gt;Date.YearToDate_flag,&amp;nbsp; = {1} means the value lies in this year.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="statement"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber"&gt;In your expression you need to ignore other date related fields&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 14:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725421#M55256</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2020-07-06T14:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725643#M55289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;Is there any other way out for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to understand this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 10:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725643#M55289</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-07-07T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725644#M55290</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 10:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725644#M55290</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-07-07T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725672#M55295</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25524"&gt;@felcar2013&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was trying to add the Flag row in the calendar and storing the table in qvd but when i load the qvd, i do not get the field&lt;/P&gt;&lt;P&gt;Date.YearToDate_flag in the table. Don't know why it is not creating any field.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725672#M55295</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-07-07T11:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression not working in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725721#M55308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this calendar (user your own dates). I have no qlik sense to share, but add the calendar, don't use the automated one. This calendar starts on 1. Jan 2019, ends Today(). The flag is included. You can test it in your own app, just copy the script in a new app an run it, create a table and you will see that the flag always indicate 1 for 2020. You should use this field in your expression.&amp;nbsp; (&lt;FONT color="#339966"&gt;Date.YearToDate_flag). Better post some test data or app.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*** Year to Date ***/&lt;/P&gt;&lt;P&gt;//Set start and end dates&lt;BR /&gt;SET vMinDate = 43466;&lt;BR /&gt;LET vMaxDate = num(Today());&lt;/P&gt;&lt;P&gt;tmpCalendar:&lt;BR /&gt;LOAD date($(vMinDate)+IterNo()-1) AS MaDate&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;WHILE $(vMinDate)+IterNo()-1&amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// creation of the different components of our calendar&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD&lt;BR /&gt;MaDate as %Key_Date,&lt;BR /&gt;MaDate as Date,&lt;BR /&gt;Month(MaDate) as Date.Month,&lt;BR /&gt;num(Month(MaDate)) as Date.NumMonth,&lt;BR /&gt;MonthName(MaDate) as Date.MonthName,&lt;BR /&gt;MonthName(MaDate,-12) as Date.PreviousYearMonthName,&lt;BR /&gt;MonthName(MaDate,-1) as Date.PreviousMonthName,&lt;BR /&gt;MonthName(MaDate,+1) as Date.NextMonthName,&lt;BR /&gt;MonthName(MaDate,+2) as [Date.NextMonthName+1],&lt;BR /&gt;Year(MaDate) as Date.Year,&lt;BR /&gt;QuarterName(MaDate) as Date.QuarterName,&lt;BR /&gt;'Q'&amp;amp;ceil(num(Month(MaDate))/3)&amp;amp; ' ' &amp;amp; Year(MaDate) as Date.Quarter,&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;//Field in filter&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;num(floor(monthend(MaDate))) as Date.MonthEnd,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;//Year To Date Flag&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;If(InYearToDate(date(MaDate),date(Today()),0,1)=-1,1,0) AS Date.YearToDate_flag,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;num(monthend(addmonths(MaDate,+1))) as Date.NextMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,+2))) as [Date.NextMonthEnd+1],&lt;BR /&gt;num(monthend(addmonths(MaDate,-1))) as Date.PreviousMonthEnd,&lt;BR /&gt;num(monthend(addmonths(MaDate,-12))) as Date.PreviousYearMonthEnd,&lt;BR /&gt;num(monthend(YearStart(MaDate))) as Date.YearStart,&lt;BR /&gt;num(monthend(YearStart(AddYears(MaDate,-1)))) as Date.PreviousYearStart&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident tmpCalendar;&lt;BR /&gt;drop table tmpCalendar;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 13:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-expression-not-working-in-KPI/m-p/1725721#M55308</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2020-07-07T13:47:17Z</dc:date>
    </item>
  </channel>
</rss>

