<?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 Combining Year and Month Columns into a single Date column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combining-Year-and-Month-Columns-into-a-single-Date-column/m-p/1191198#M22362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to format my dates from the various data sources I'm getting my data from.&amp;nbsp; One data source represents the date by two separate columns (Year and Month).&amp;nbsp; I would like to combine these two columns into a single one, but also change the month format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year = YYYY&lt;/P&gt;&lt;P&gt;Month = M01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date = JanYYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone could help me with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 22:20:41 GMT</pubDate>
    <dc:creator>jleefjcapital</dc:creator>
    <dc:date>2016-10-24T22:20:41Z</dc:date>
    <item>
      <title>Combining Year and Month Columns into a single Date column</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-Year-and-Month-Columns-into-a-single-Date-column/m-p/1191198#M22362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to format my dates from the various data sources I'm getting my data from.&amp;nbsp; One data source represents the date by two separate columns (Year and Month).&amp;nbsp; I would like to combine these two columns into a single one, but also change the month format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year = YYYY&lt;/P&gt;&lt;P&gt;Month = M01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date = JanYYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone could help me with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 22:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-Year-and-Month-Columns-into-a-single-Date-column/m-p/1191198#M22362</guid>
      <dc:creator>jleefjcapital</dc:creator>
      <dc:date>2016-10-24T22:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Year and Month Columns into a single Date column</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-Year-and-Month-Columns-into-a-single-Date-column/m-p/1191199#M22363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your solution will include two parts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Build a proper date field&lt;/P&gt;&lt;P&gt;2. Format the date field in the required way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to build the proper date field, use the MakeDate function and only use the last 2 characters of the Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate(Year, Right(Month, 2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then enclose the same in the formatting function Date():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(&lt;SPAN style="font-size: 13.3333px;"&gt;MakeDate(Year, Right(Month, 2)), 'MMMYYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 22:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-Year-and-Month-Columns-into-a-single-Date-column/m-p/1191199#M22363</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-24T22:43:53Z</dc:date>
    </item>
  </channel>
</rss>

