<?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 Values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574112#M41833</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just one check, you should neglect all the Calendar Related fields in set analysis while trying to get the previous year data with current years selection.&lt;/P&gt;&lt;P&gt;Do in your case the expression should look like below.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateType={"LeadMarketCreatedDate"}, Date={"&amp;gt;=$(vDateFrom_1) &lt;STRONG&gt;&amp;lt;=$(vDateTo_1)"},Year=,Month=,Week=&amp;gt;}&lt;/STRONG&gt; LeadFlag)&lt;/P&gt;&lt;P&gt;Replace the Bold Field names with your actual field names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;</description>
    <pubDate>Sat, 27 Apr 2019 18:33:10 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2019-04-27T18:33:10Z</dc:date>
    <item>
      <title>YTD Values</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574108#M41832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data model that uses canonical dates as shown in the attached file.&lt;/P&gt;&lt;P&gt;But I have a problem after implementing it.&lt;/P&gt;&lt;P&gt;I'm trying to get the numbers for previous year same date but I get zero, not sure if doing it right. I guess it doesn't get the values for previous year as the current year is selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the corresponding value of the same day previous year?&lt;/P&gt;&lt;P&gt;ex: if leads =20 on 10-sep-2018, leads = ?? on 10-sep-2017&lt;/P&gt;&lt;P&gt;Here is the expression i have used:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;This current date works:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;DateType={"LeadMarketCreatedDate"}, Date={"&amp;gt;=$(vDateFrom) &amp;lt;=$(vDateTo)"}&amp;gt;} LeadFlag)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;But this doesn't work:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;DateType={"LeadMarketCreatedDate"}, Date={"&amp;gt;=$(vDateFrom_1) &amp;lt;=$(vDateTo_1)"}&amp;gt;} LeadFlag)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDateFrom_1 is:&amp;nbsp; num((Date(AddYears(min(Date), -1))))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDateTo_1 is:&amp;nbsp; num((Date(AddYears(max(Date), -1))))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Help is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 16:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574108#M41832</guid>
      <dc:creator>GaneshLakshman</dc:creator>
      <dc:date>2019-04-27T16:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Values</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574112#M41833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just one check, you should neglect all the Calendar Related fields in set analysis while trying to get the previous year data with current years selection.&lt;/P&gt;&lt;P&gt;Do in your case the expression should look like below.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateType={"LeadMarketCreatedDate"}, Date={"&amp;gt;=$(vDateFrom_1) &lt;STRONG&gt;&amp;lt;=$(vDateTo_1)"},Year=,Month=,Week=&amp;gt;}&lt;/STRONG&gt; LeadFlag)&lt;/P&gt;&lt;P&gt;Replace the Bold Field names with your actual field names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 18:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574112#M41833</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2019-04-27T18:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Values</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574143#M41835</link>
      <description>This unfortunately did not work, I guess when we select today's date it gets the data only of today which makes it impossible to refer to previous years data.&lt;BR /&gt;Is there a way to disregard the selected data but consider the date selected so that we can go the Today-1?</description>
      <pubDate>Sun, 28 Apr 2019 05:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-Values/m-p/1574143#M41835</guid>
      <dc:creator>GaneshLakshman</dc:creator>
      <dc:date>2019-04-28T05:56:46Z</dc:date>
    </item>
  </channel>
</rss>

