<?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: Issue in LYTD and YTD expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1984856#M81284</link>
    <description>&lt;P&gt;How about this.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YTD&lt;/STRONG&gt;&lt;BR /&gt;Sum({$&amp;lt;[Date] = {'&amp;gt;=$(=YearStart(Today()))'}&amp;gt;} [Sales])&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YTD Previous Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;[Date] = {'&amp;gt;=$(=Date(AddYears(YearStart(Today()),-1)))&amp;lt;$(=Date(AddYears(Today(),-1)))'}&amp;gt;} [Sales])&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 16:43:00 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2022-09-23T16:43:00Z</dc:date>
    <item>
      <title>Issue in LYTD and YTD expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1984690#M81260</link>
      <description>&lt;P&gt;My below LYTD expression&lt;/P&gt;
&lt;P&gt;num(sum({&amp;lt;Month,Year,YearMonth,date ={"&amp;gt;=$(vLastYearStart) &amp;lt;=$(vLastYear)"}&amp;gt;}Sales) ,'##0.0')&lt;/P&gt;
&lt;P&gt;It will give data will may-21&amp;nbsp; .Even&amp;nbsp; if I select jun-22&lt;/P&gt;
&lt;P&gt;Similarly for YTD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;num(sum({&amp;lt;Month,Year,YearMonth,date ={"&amp;gt;=$(vYearStart) &amp;lt;=$(vMaxDate)"}&amp;gt;}Sales) ,'##0.0')&lt;/P&gt;
&lt;P&gt;It will give data will may-22&amp;nbsp; .Even&amp;nbsp; if I select jun-22&lt;/P&gt;
&lt;P&gt;But if I put space before below bold it will give all month data ir-respective of selection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;num(sum({&amp;lt;Month,Year,YearMonth,date ={"&amp;gt;=$(vYearStart) &amp;lt;&lt;STRONG&gt;= $(vM&lt;/STRONG&gt;axDate)"}&amp;gt;}Sales) ,'##0.0')&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 11:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1984690#M81260</guid>
      <dc:creator>priyanka08</dc:creator>
      <dc:date>2022-09-23T11:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in LYTD and YTD expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1984856#M81284</link>
      <description>&lt;P&gt;How about this.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YTD&lt;/STRONG&gt;&lt;BR /&gt;Sum({$&amp;lt;[Date] = {'&amp;gt;=$(=YearStart(Today()))'}&amp;gt;} [Sales])&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YTD Previous Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;[Date] = {'&amp;gt;=$(=Date(AddYears(YearStart(Today()),-1)))&amp;lt;$(=Date(AddYears(Today(),-1)))'}&amp;gt;} [Sales])&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1984856#M81284</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-23T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in LYTD and YTD expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1985319#M81348</link>
      <description>&lt;P&gt;This is also give same result.Not working at all.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 12:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1985319#M81348</guid>
      <dc:creator>priyanka08</dc:creator>
      <dc:date>2022-09-26T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in LYTD and YTD expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1985550#M81362</link>
      <description>&lt;P&gt;Could you perhaps clarify this?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;" But if I put space before below bold it will give all month data ir-respective of selection ..."&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-LYTD-and-YTD-expression/m-p/1985550#M81362</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-26T17:57:08Z</dc:date>
    </item>
  </channel>
</rss>

