<?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 InYearToDate requires application to be closed and reopened in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430833#M160654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dual purpose application, which creates daily qvds and also has few dashboards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I was validating the dashboards and saw a difference in sales figures for two charts for 2013 sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference in expression was , once uses InYearToDate and other uses InYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(if(Trans_Type = 'Sales'&amp;nbsp;&amp;nbsp; and STATUS = 'Complete' AND APPROVED_FLG ='Y',(if(&lt;SPAN style="color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;InYearToDate&lt;/STRONG&gt;&lt;/SPAN&gt;(ORDER_DATE, (today()),0), SALES_AMT)),0))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(if(Trans_Type = 'Sales'&amp;nbsp; AND STATUS = 'Complete' AND APPROVED_FLG ='Y',(if(&lt;SPAN style="color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;InYear&lt;/STRONG&gt;&lt;/SPAN&gt;(ORDER_DATE, (today()),0), SALES_AMT)),0))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I noticed is if I do not close the application and reopened the "today" remains the original application date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone know whether this is an expected behavior ? if so is there any workaround?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 22:32:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-12T22:32:37Z</dc:date>
    <item>
      <title>InYearToDate requires application to be closed and reopened</title>
      <link>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430833#M160654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dual purpose application, which creates daily qvds and also has few dashboards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I was validating the dashboards and saw a difference in sales figures for two charts for 2013 sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference in expression was , once uses InYearToDate and other uses InYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(if(Trans_Type = 'Sales'&amp;nbsp;&amp;nbsp; and STATUS = 'Complete' AND APPROVED_FLG ='Y',(if(&lt;SPAN style="color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;InYearToDate&lt;/STRONG&gt;&lt;/SPAN&gt;(ORDER_DATE, (today()),0), SALES_AMT)),0))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(if(Trans_Type = 'Sales'&amp;nbsp; AND STATUS = 'Complete' AND APPROVED_FLG ='Y',(if(&lt;SPAN style="color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;InYear&lt;/STRONG&gt;&lt;/SPAN&gt;(ORDER_DATE, (today()),0), SALES_AMT)),0))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I noticed is if I do not close the application and reopened the "today" remains the original application date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone know whether this is an expected behavior ? if so is there any workaround?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430833#M160654</guid>
      <dc:creator />
      <dc:date>2013-02-12T22:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: InYearToDate requires application to be closed and reopened</title>
      <link>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430834#M160655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont know what's causing the issue. Perhaps a sample qvw will help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using "date(Now())" instead of "Today()".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430834#M160655</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-02-12T22:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: InYearToDate requires application to be closed and reopened</title>
      <link>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430835#M160656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the timer modes for today() function. Default timer mode is 2, which means today() returns the date when the application was opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your InYearToDate() function returns true if ORDER_DATE lies between this year's start and the date you opened the application (assuming you opened the application this year), while your InYear() function returns true for all ORDER_DATEs of this year (again assuming you opened the application this year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you see? Then I think it is expected behaviour. A workaround or fix depends on what you expect to see instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430835#M160656</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-12T22:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: InYearToDate requires application to be closed and reopened</title>
      <link>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430836#M160657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that explains! I did not know that&amp;nbsp; today()'s&amp;nbsp;&amp;nbsp; default timer mode is 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understand Now() has the default timer mode 1 so that should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-1582314089138213789188" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt; &amp;amp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/phani221984" id="jive-4044114089138208532330" onmouseout="" onmouseover=""&gt;Phaneendra Kunche&lt;/A&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InYearToDate-requires-application-to-be-closed-and-reopened/m-p/430836#M160657</guid>
      <dc:creator />
      <dc:date>2013-02-12T22:59:26Z</dc:date>
    </item>
  </channel>
</rss>

