<?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: Dates Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502103#M688290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arrive a new dimension Expiry date in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;AddMonths(DateDimension, 36) AS ExpiryDate&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this expression to get the count of CIs that expires in the next 30 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ExpiryDate={'&amp;gt;=$(=Today())&amp;lt;=$(Date(Today() + 30))'}&amp;gt;} CI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 02:44:59 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-11-28T02:44:59Z</dc:date>
    <item>
      <title>Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502101#M688288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have the create_date for a CI . It expires after 36 months from create_date. How do I calculate the count of CIs that expires in the next 30 days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 23:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502101#M688288</guid>
      <dc:creator />
      <dc:date>2013-11-27T23:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502102#M688289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have sample data for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 02:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502102#M688289</guid>
      <dc:creator>bill_mtc</dc:creator>
      <dc:date>2013-11-28T02:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502103#M688290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arrive a new dimension Expiry date in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;AddMonths(DateDimension, 36) AS ExpiryDate&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this expression to get the count of CIs that expires in the next 30 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ExpiryDate={'&amp;gt;=$(=Today())&amp;lt;=$(Date(Today() + 30))'}&amp;gt;} CI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 02:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502103#M688290</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-28T02:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502104#M688291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(addmonths(create_date,36)-today()&amp;lt;=30,1,0) as ExpirationFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the following expression to get the count of CI's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(ExpirationFlag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 02:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502104#M688291</guid>
      <dc:creator>Alejandro_Hernández</dc:creator>
      <dc:date>2013-11-28T02:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502105#M688292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please ExpiryFlag in the script level and sum that ExpiryFlag on the dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Expiry_Dt&lt;/SPAN&gt; &amp;gt;= Today() AND &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Expiry_Dt &lt;/SPAN&gt;&amp;lt;= Today()+30 , 1 ,0) AS ExpiryFlag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AddMonths(DateField, 36) AS Expiry_Dt&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Source;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;On the UI: SUM(ExpiryFlag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 02:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502105#M688292</guid>
      <dc:creator />
      <dc:date>2013-11-28T02:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502106#M688293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all of you for your valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I use the expression while creating the dashboard and not include them in the load script?.. Does it have any performance implications??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 05:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502106#M688293</guid>
      <dc:creator />
      <dc:date>2013-11-28T05:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dates Function</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502107#M688296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;Definitely there is an impact on performance if you calculate dynamically in expression, the best method is if possible calculate everything in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 06:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Function/m-p/502107#M688296</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-28T06:27:23Z</dc:date>
    </item>
  </channel>
</rss>

