<?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 Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372213#M820207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;Can someone please explain me what does the below script does ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(MakeDate(year(AddYears(Today(),-2,num(month(Today()))))),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(SalesMonth,4) &amp;amp; Right(salesMonth,2) as yearmonth,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>smilingjohn</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372213#M820207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;Can someone please explain me what does the below script does ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(MakeDate(year(AddYears(Today(),-2,num(month(Today()))))),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(SalesMonth,4) &amp;amp; Right(salesMonth,2) as yearmonth,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372213#M820207</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372214#M820208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is supposed to create a date value that's the start of this month two years ago. But the expression is not correct since the parentheses don't match up. It should be =date(MakeDate(year(AddYears(Today(),-2)),num(month(Today()))),'YYYY-MM-DD')&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also gives the wanted result, but is easier to read: Date(MonthStart(Today(),-24),'YYYY-MM-DD')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372214#M820208</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-08-09T09:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372215#M820209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wild stab in the dark....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get todays date, get the year of this date, subtract 2 years from it, get the month of this date,format the whole thing as yyyy-mm-dd and convert it to a date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372215#M820209</guid>
      <dc:creator>clickertape</dc:creator>
      <dc:date>2017-08-09T09:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372216#M820211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, This expression won't work because you need 2 parameters of AddYears()/ You can split into different variations&lt;/P&gt;&lt;P&gt;Year(AddYears(Today(), -2)) -- 2015&lt;/P&gt;&lt;P&gt;Num(Month(Today())) -- 8&lt;/P&gt;&lt;P&gt;MakeDate(2015, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; -- 2015-8thmonth-Starting date of the month (2015-08-01) Because, My format of date is YYYY-MM-DD&lt;/P&gt;&lt;P&gt;Date() -- Returns as we need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, It creates a date for current month of 2 years back date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372216#M820211</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-09T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372217#M820212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know all the functions being used in this expression? If yes, knowing also that the expression evaluation would be inside-out (inner function's output would be passed to outer function as parameter) would help you know what it is doing. Else, if you don't understand a specific function, let know or search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this way you would learn better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372217#M820212</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-09T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372218#M820213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Gysbert &lt;/P&gt;&lt;P&gt;thanks for the reply ...i got it can you please tell me how does this work ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Left(SalesMonth,4) &amp;amp; Right(salesMonth,2) as yearmonth,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372218#M820213</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-08-09T09:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1372219#M820214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I'm not going to explain every single function. There's an online help where you can find what Left() and Right() do. Have a look at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://help.qlik.com/qlikview" rel="nofollow" target="_blank"&gt;https://help.qlik.com/qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1372219#M820214</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-08-09T09:40:22Z</dc:date>
    </item>
  </channel>
</rss>

