<?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: Automate variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111538#M367610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think that's more readable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 21:17:29 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-07-07T21:17:29Z</dc:date>
    <item>
      <title>Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111533#M367605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create two variables in my qvw .where vStartDate must be start date of financial year and end date must be last date of that fin year.i want to automate this two variable .Means next year they must change.&lt;/P&gt;&lt;P&gt; For e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate=Makedate(2016,04,01);// next year&amp;nbsp; 01/04/2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Let vEndDate=Makedate(2017,03,31);//31,03,2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Please help me &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Rupali &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111533#M367605</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2016-07-07T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111534#M367606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vYear = year(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vStartDate=Makedate('$(vYear)',04,01);// next year&amp;nbsp; 01/04/2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Let vEndDate=Makedate(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'$(vYear)'&lt;/SPAN&gt;,03,31);//31,03,2018&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111534#M367606</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-07T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111535#M367607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean, you want the script to figure out whether we're in the current or in the next fiscal year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Let vStartDate = Makedate(IF (Month(Today())&amp;lt;4,Year(Today())-1,Year(Today())),4,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier; font-weight: inherit;"&gt;Let vEndDate = Makedate(&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;IF (Month(Today())&amp;lt;4,Year(Today()),Year(Today())+1)&lt;/SPAN&gt;,3,31);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Peter;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111535#M367607</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-07T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111536#M367608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i was trying like this.&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;vStartDate&lt;/SPAN&gt;=Date(Makedate(Left(Yearname(Date(Today(),'DD/MM/YYYY'),0,4),4),04,01),'DD-MMM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111536#M367608</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2016-07-07T16:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111537#M367609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use Rakesh's technique, but with one correction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Let vTodaysYear = Year(Today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Let vStartDate = &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;Makedate(IF (Month(Today())&amp;lt;4,vTodaysYear-1,vTodaysYear),4,1);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Let vEndDate = &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier; font-weight: inherit;"&gt;Makedate(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;IF (Month(Today())&amp;lt;4,&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;vTodaysYear&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;vTodaysYear&lt;/SPAN&gt;+1)&lt;/SPAN&gt;,3,31);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111537#M367609</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-07T16:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automate variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111538#M367610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think that's more readable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 21:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automate-variable/m-p/1111538#M367610</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-07T21:17:29Z</dc:date>
    </item>
  </channel>
</rss>

