<?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: Convert Datediff from SQL to Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13794#M2283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Interval($(vStartDate)-date(InvOrderDate,'DD/MM/YYYY'),'d')&amp;lt;=0 and Interval($(vEndDate)-date(InvOrderDate,'DD/MM/YYYY'),'d')&amp;gt;=0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, we are extracting data according to the Start and End date, with the "InvOrderDate" column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User will enter the start date and end date in front end, according to that, data should extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 09:11:33 GMT</pubDate>
    <dc:creator>kalyandg</dc:creator>
    <dc:date>2018-02-13T09:11:33Z</dc:date>
    <item>
      <title>Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13790#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirement, like convert SQL queries into Qlikview format and store it as QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the where condition, like date difference query should be converted to Qlikview style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datediff( day, InvDate , @StartDate ) &amp;lt;=0 and datediff( day, InvDate , @EndDate ) &amp;gt;=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. (date(InvOrderDate,'DD/MM/YYYY')&amp;gt;=$(vStartDate) and date(InvOrderDate,'DD/MM/YYYY')&amp;lt;=$(vEndDate))&lt;/P&gt;&lt;P&gt;2. ($(vStartDate)-date(InvOrderDate,'DD/MM/YYYY')&amp;lt;=0 and $(vEndDate)-date(InvOrderDate,'DD/MM/YYYY')&amp;gt;=0 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13790#M2279</guid>
      <dc:creator>kalyandg</dc:creator>
      <dc:date>2018-02-13T07:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13791#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: Arial , sans-serif; font-size: 10.5pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Arial , sans-serif; font-size: 10.5pt;"&gt;(@EndDate-&lt;SPAN style="font-size: 12pt;"&gt;@StartDate&lt;/SPAN&gt;,'d')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13791#M2280</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-02-13T07:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13792#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim Driller,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Interval($(vStartDate)-date(InvOrderDate,'DD/MM/YYYY'))&amp;lt;=0 and Interval($(vEndDate)-date(InvOrderDate,'DD/MM/YYYY'))&amp;gt;=0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13792#M2281</guid>
      <dc:creator>kalyandg</dc:creator>
      <dc:date>2018-02-13T09:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13793#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) note that you Need to write , &lt;STRONG&gt;'d'&lt;/STRONG&gt; to calculate the interval in days&lt;/P&gt;&lt;P&gt;2) the first date (in this case @EndDate) should always be the higher date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: Arial , sans-serif; font-size: 10.5pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Arial , sans-serif; font-size: 10.5pt;"&gt;(@EndDate-&lt;SPAN style="font-size: 12pt;"&gt;@StartDate&lt;/SPAN&gt;,&amp;nbsp; &lt;STRONG&gt;'d')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13793#M2282</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-02-13T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13794#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Interval($(vStartDate)-date(InvOrderDate,'DD/MM/YYYY'),'d')&amp;lt;=0 and Interval($(vEndDate)-date(InvOrderDate,'DD/MM/YYYY'),'d')&amp;gt;=0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, we are extracting data according to the Start and End date, with the "InvOrderDate" column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User will enter the start date and end date in front end, according to that, data should extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13794#M2283</guid>
      <dc:creator>kalyandg</dc:creator>
      <dc:date>2018-02-13T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Datediff from SQL to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13795#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you Need to a it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Interval(date(InvOrderDate,'DD/MM/YYYY')- $(vStartDate),'d')&amp;gt;=0 and Interval($(vEndDate)-date(InvOrderDate,'DD/MM/YYYY'),'d')&amp;gt;=0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would test it by creating text boxes with that interval expressions to see if it works as suspected&lt;/P&gt;&lt;P&gt;Interval(date(InvOrderDate,'DD/MM/YYYY')- $(vStartDate),'d')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Datediff-from-SQL-to-Qlikview/m-p/13795#M2284</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-02-13T09:24:38Z</dc:date>
    </item>
  </channel>
</rss>

