<?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 Year To Date Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1955959#M78823</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I have an issue with the YTD expression. In my app the calendar I've created starts from the first date it finds data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 313px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84208i7A942A5FBDC2EC26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this example, I have no data in my dataset before the 10th of January.&lt;/P&gt;
&lt;P&gt;But if I use the YTD expression (&lt;STRONG&gt;date_field&amp;nbsp;&lt;/STRONG&gt;= &lt;EM&gt;{"&amp;gt;=$(=Date(AddYears(Min([date_field]),-1)))&amp;lt;=$(=Date(AddYears(Max([date_field]),-1)))"}&lt;/EM&gt;)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my expression shows data starting from the 10th of January 2021 loosing the informations of the previous days.&lt;/P&gt;
&lt;P&gt;I've tried to add the function&amp;nbsp;&lt;STRONG&gt;YearStart()&lt;/STRONG&gt; but if I select another range time it calculates data always starting from the first of Jan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I solve this issue?&lt;/P&gt;
&lt;P&gt;Thanks to all!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 14:33:16 GMT</pubDate>
    <dc:creator>danimarc12</dc:creator>
    <dc:date>2022-07-14T14:33:16Z</dc:date>
    <item>
      <title>Year To Date Function</title>
      <link>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1955959#M78823</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I have an issue with the YTD expression. In my app the calendar I've created starts from the first date it finds data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 313px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84208i7A942A5FBDC2EC26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this example, I have no data in my dataset before the 10th of January.&lt;/P&gt;
&lt;P&gt;But if I use the YTD expression (&lt;STRONG&gt;date_field&amp;nbsp;&lt;/STRONG&gt;= &lt;EM&gt;{"&amp;gt;=$(=Date(AddYears(Min([date_field]),-1)))&amp;lt;=$(=Date(AddYears(Max([date_field]),-1)))"}&lt;/EM&gt;)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my expression shows data starting from the 10th of January 2021 loosing the informations of the previous days.&lt;/P&gt;
&lt;P&gt;I've tried to add the function&amp;nbsp;&lt;STRONG&gt;YearStart()&lt;/STRONG&gt; but if I select another range time it calculates data always starting from the first of Jan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I solve this issue?&lt;/P&gt;
&lt;P&gt;Thanks to all!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 14:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1955959#M78823</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2022-07-14T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Function</title>
      <link>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956015#M78826</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128073"&gt;@danimarc12&lt;/a&gt;&amp;nbsp; will something like below expression help:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date={‘&amp;gt;=$(=YearStart(Today()))&amp;lt;=$(=Today())’}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if it does.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956015#M78826</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-14T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Function</title>
      <link>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956021#M78827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp;and thanks for your aswer.&lt;/P&gt;
&lt;P&gt;As I said, if I use the YearStart() function, I can't compare different periods like March 2022 over March 2021.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956021#M78827</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2022-07-14T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Function</title>
      <link>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956067#M78833</link>
      <description>&lt;P&gt;Add a MonthStart function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Date(&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(AddYears(Min([date_field]),-1)))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 17:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-To-Date-Function/m-p/1956067#M78833</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-07-14T17:30:12Z</dc:date>
    </item>
  </channel>
</rss>

