<?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: Problem with Inyeatodate() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85044#M5666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;thanks for your answer. Unluckily it does not work.&lt;IMG alt="date3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193089_date3.PNG" style="height: 244px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 09:26:37 GMT</pubDate>
    <dc:creator>simotrab</dc:creator>
    <dc:date>2018-02-12T09:26:37Z</dc:date>
    <item>
      <title>Problem with Inyeatodate()</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85042#M5664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I'm facing a problem with the inyeartodate() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense/1.0/Subsystems/WorkingWith/Content/Scripting/DateAndTimeFunctions/inyeartodate.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense/1.0/Subsystems/WorkingWith/Content/Scripting/DateAndTimeFunctions/inyeartodate.htm"&gt;http://help.qlik.com/en-US/sense/1.0/Subsystems/WorkingWith/Content/Scripting/DateAndTimeFunctions/inyeartodate.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the boolean result that inyeartodate() gives, working on two years. This means that I have some data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;number,&lt;/P&gt;&lt;P&gt;date(date) as InlineDate&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[number,date&lt;/P&gt;&lt;P&gt;1,01/02/2018&lt;/P&gt;&lt;P&gt;2,01/02/2017&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using those formulae:&lt;/P&gt;&lt;P&gt;=InYearToDate(InlineDate, now(0), 0) // for the current Year&lt;/P&gt;&lt;P&gt;=InYearToDate(InlineDate, now(0), -1) // for the past Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193069" alt="date1.PNG" class="jive-image image-1" height="92" src="https://community.qlik.com/legacyfs/online/193069_date1.PNG" style="height: 92.3806px; width: 774px;" width="774" /&gt;&lt;/P&gt;&lt;P&gt;The problem is that as I try to do the same thing with some database data, the second formula does not work.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193088" alt="date2.PNG" class="jive-image image-2" height="281" src="https://community.qlik.com/legacyfs/online/193088_date2.PNG" style="height: 281px; width: 735.105px;" width="735" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date Field in the database is imported with the function date(), so it is tagged as date. The difference is that in the inline example the InlineDate is not tagged as ascii and text, and in the database example yes. Is it probably the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it bemuse me the fact that in the second example, the ...0) formula works, but the ...-1) no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea to solve this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85042#M5664</guid>
      <dc:creator>simotrab</dc:creator>
      <dc:date>2018-02-12T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Inyeatodate()</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85043#M5665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;P&gt;Now(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85043#M5665</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-12T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Inyeatodate()</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85044#M5666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;thanks for your answer. Unluckily it does not work.&lt;IMG alt="date3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193089_date3.PNG" style="height: 244px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85044#M5666</guid>
      <dc:creator>simotrab</dc:creator>
      <dc:date>2018-02-12T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Inyeatodate()</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85045#M5667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should work. Can you provide sample data or sample app showing it's not working?&lt;/P&gt;&lt;P&gt;We can check and update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Inyeatodate/m-p/85045#M5667</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-12T09:37:16Z</dc:date>
    </item>
  </channel>
</rss>

