<?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 to a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304367#M112513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this variable in Script or in Expression of a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 15:36:43 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2011-11-08T15:36:43Z</dc:date>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304361#M112507</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 have three list box, for year, month and day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects the date, I want to pass that to a variable as vPickDate.&amp;nbsp; And then I want that vPickDate in chart expression.&amp;nbsp; Like select data when vPickDate is greater than Planned Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I pass the selections made in day, month, and year to one variable and use that in chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 14:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304361#M112507</guid>
      <dc:creator />
      <dc:date>2011-11-08T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304362#M112508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MakeDate() to generate date based on the Year, Month and Day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex :vPickDate = MakeDate(Max(Year), Max(Month), Max(Day))&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>Tue, 08 Nov 2011 14:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304362#M112508</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2011-11-08T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304363#M112509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great.&amp;nbsp; Thanks for the reply Jagan&lt;/P&gt;&lt;P&gt;But I want to pass the current selection from the list box to the vPickDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will that work?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304363#M112509</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:00:56Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304364#M112510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vPickDate = MakeDate(Max(Year), Max(Month), Max(Day))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Year, Month and Day are the list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if you select &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&amp;nbsp;&amp;nbsp;&amp;nbsp; - 2011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day&amp;nbsp;&amp;nbsp;&amp;nbsp; - 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Max(Year) will fetch 2011 similarly the other will do and by using the MakeDate a date is created.&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>Tue, 08 Nov 2011 15:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304364#M112510</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2011-11-08T15:08:45Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304365#M112511</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;The expression Jagan gave you will give you the date of the max values selected for year, month and day, this means that if the user selects more than one value for any of those list boxes, the resulting date will be the max posible date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to force the user to select just one value for each list box then you can check the option "Always one selected" in the list box properties or you can modify the Jagan's expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate(only(Year), only(Month), only(Day))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will give you the date only if one value in each field is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304365#M112511</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304366#M112512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply guys.&amp;nbsp; Gabriela that was a good point. &lt;/P&gt;&lt;P&gt;But when I execute the script using MakeDate(only(Year), only(Month), only(Day))&lt;/P&gt;&lt;P&gt;I get script line error, any idea why we get that and how to fix that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304366#M112512</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304367#M112513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this variable in Script or in Expression of a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304367#M112513</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2011-11-08T15:36:43Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304368#M112514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating the variable in the script like&lt;/P&gt;&lt;P&gt;LET vPickDate = MakeDate(only(Year), only(Month), only(Day))&lt;/P&gt;&lt;P&gt;When I run the script I get script line error and so the variable is not created&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304368#M112514</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304369#M112515</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;try adding a ';' at the end of the sentence or use SET instead of LET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304369#M112515</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:50:21Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304370#M112516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gabriela set worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304370#M112516</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304371#M112517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But SET gives that as a string and doesn't populates the variable when some thing is selected in the list box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304371#M112517</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:55:49Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304372#M112518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use $(vPickDate) in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304372#M112518</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Date to a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304373#M112519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still trying to create variable in edit script using the line&lt;/P&gt;&lt;P&gt;LET vPickDate = MakeDate(only(Year), only(Month), only(Day));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that gives me script line error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-to-a-variable/m-p/304373#M112519</guid>
      <dc:creator />
      <dc:date>2011-11-08T16:04:20Z</dc:date>
    </item>
  </channel>
</rss>

