<?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 Dates into month and year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998444#M339524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add another field in your load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;trade_date,&lt;/P&gt;&lt;P&gt;Date(Date#(trade_date, 'YYYY-MM-DD'),'MMM YYYY') as [trade date MMM YYYY],&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from your data source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 08:58:35 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-09-22T08:58:35Z</dc:date>
    <item>
      <title>Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998439#M339519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Date Column.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;trade_date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015-03-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015-03-07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015-04-06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015-04-02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015-04-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014-12-23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014-12-14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want out put as&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;output&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mar 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Apr 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dec 2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select Mar 2015, data of all dates of march should be selected.&lt;/P&gt;&lt;P&gt;Help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998439#M339519</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2015-09-22T07:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998440#M339520</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;use Monthname()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;date(datefield,'MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998440#M339520</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-09-22T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998441#M339521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to check if your dates are in date format or not. &lt;/P&gt;&lt;P&gt;if they are in date format and you need to include one more column in script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Trade_date,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MonthName(Trade_date) as MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;from table; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now you can use this field as list box for filtering the data. And when you will select one month it will select all the dates for that particular month Year . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998441#M339521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998442#M339522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is trade_date a proper date or a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not a proper date you'll need to use date#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(trade_date, 'YYYY-MM-DD'),'MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998442#M339522</guid>
      <dc:creator />
      <dc:date>2015-09-22T08:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998443#M339523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;Try this in the List Box by choosing expression and use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Date( MonthStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Trade_date&lt;/SPAN&gt;), 'YYYY-MMM')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or as Max dreamer &amp;amp; Balakumar mentioned use MonthName(&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Trade_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998443#M339523</guid>
      <dc:creator>rajkumarb</dc:creator>
      <dc:date>2015-09-22T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998444#M339524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add another field in your load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;trade_date,&lt;/P&gt;&lt;P&gt;Date(Date#(trade_date, 'YYYY-MM-DD'),'MMM YYYY') as [trade date MMM YYYY],&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from your data source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998444#M339524</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-22T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998445#M339525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date(Date#(trade_date,'YYYY-MM-DD'),'MMM YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998445#M339525</guid>
      <dc:creator>ahmar811</dc:creator>
      <dc:date>2015-09-22T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dates into month and year</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998446#M339526</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;one solution to create both date and month could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_181791_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99753_QlikCommunity_Thread_181791_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14429644153233917" jivemacro_uid="_14429644153233917"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(trade_date) as trade_month;&lt;/P&gt;
&lt;P&gt;LOAD Date#(trade_date,'YYYY-MM-DD') as trade_date&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="181791" data-objecttype="1" href="https://community.qlik.com/thread/181791"&gt;https://community.qlik.com/thread/181791&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 23:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Dates-into-month-and-year/m-p/998446#M339526</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-09-22T23:26:56Z</dc:date>
    </item>
  </channel>
</rss>

