<?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 YY/MM/YYYY to YY/MM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375068#M818046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the answers. I am sorry if my question was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically i have a Orderdate column which has values like '16/01/2017', '16/02/2017'......, '17/01/2017'&lt;/P&gt;&lt;P&gt;It should take '16/01/2017' as Aug-16 and not as Jan-17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Date(Date#(Left(OrderDate, 5), 'YY/MM'), 'YY/MM') doesn't seem to work&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 17:10:09 GMT</pubDate>
    <dc:creator>sajalgour2309</dc:creator>
    <dc:date>2017-08-24T17:10:09Z</dc:date>
    <item>
      <title>Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375062#M818040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello guys,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i have a date column in my data source and it's format is YY/MM/YYYY (17/08/2017). In Qlikview i want date in YY/MM format.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field name - OrderDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have tried Date((Date#(OrderDate, 'YY/MM/YYYY')), 'YY/MM') but it doesn't work.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Am i doing something wrong here ?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sajal&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/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375062#M818040</guid>
      <dc:creator>sajalgour2309</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375063#M818041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#('17/08/2017', 'YY/MM/YYYY'), 'YY/MM')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What issue are you having?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(Left(OrderDate, 5), 'YY/MM'), 'YY/MM')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375063#M818041</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375064#M818042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps your original date format is 'DD/MM/YYYY' ? That problem alone would make the formula incorrect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your date is already formatted as a proper QlikView date (the easier way to test is to change the number format to Integer and verify that you see 5-digit numbers, starting with 4) - then you can simply format it any way you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(OrderDate, 'YY/MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this is still going to be your original date, only presented as a Month. If you wanted to actually replace the date with the Month (so, all 30 days of that month should be replaced with a single value), then you should add the MonthStart() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(MonthStart(OrderDate), 'YY/MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your date was loaded as a string (you don't see integer values when you change the Number format), then you need to cast your string into the proper date value, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#(OrderDate, 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you can format the result any way you want, as suggested earlier.&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;Upgrade your Qlik skills with my book &lt;A href="https://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=098202df27917ab9836332cf063c51f5"&gt;QlikView Your Business: An Expert Guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375064#M818042</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-08-24T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375065#M818043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(Date(today(), 'YY/MM/YYYY'),'YY/MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&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: 13.3333px;"&gt;=Date((Date(OrderDate, 'YY/MM/YYYY')), 'YY/MM')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375065#M818043</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375066#M818044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny, how the Date#() function tries to recover from an invalid format string. If specifying the year twice is to be considered invalid. What else would you do with something like Date#('16/08/2017', 'YY/MM/YYYY') ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fortunately, you can specify many years, but only the last one will be used. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date(Date#('16/08/2017', 'YY/MM/YYYY')) = Aug 1st, 2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375066#M818044</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-08-24T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375067#M818045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(Date(today(), 'YY/MM/YYYY'),'YY/MM')&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174577_Img2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375067#M818045</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-24T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375068#M818046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the answers. I am sorry if my question was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically i have a Orderdate column which has values like '16/01/2017', '16/02/2017'......, '17/01/2017'&lt;/P&gt;&lt;P&gt;It should take '16/01/2017' as Aug-16 and not as Jan-17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Date(Date#(Left(OrderDate, 5), 'YY/MM'), 'YY/MM') doesn't seem to work&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375068#M818046</guid>
      <dc:creator>sajalgour2309</dc:creator>
      <dc:date>2017-08-24T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375069#M818047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can 16/01/2017 be Aug-16? Where is the Month information in 16/01/2017? Did you mean 16/08/2017?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375069#M818047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375070#M818048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i meant 16/08/2017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375070#M818048</guid>
      <dc:creator>sajalgour2309</dc:creator>
      <dc:date>2017-08-24T17:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375071#M818049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is 16/08/2017, I don't see a reason for this not getting read&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(Left(OrderDate, 5), 'YY/MM'), 'YY/MM')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375071#M818049</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375072#M818050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Date(Date#(Left(OrderDate, 5), 'YY/MM'), 'YY/MM') is not working because OrderDate is not text like '16/08/2017' it's actual date like 42963.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggested sunny I have tried &lt;SPAN style="font-size: 13.3333px;"&gt;Date(Date#(Left('16/08/2017', 5), 'YY/MM'), 'YY/MM') and it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but it won't work when i will pass OrderDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375072#M818050</guid>
      <dc:creator>sajalgour2309</dc:creator>
      <dc:date>2017-08-24T17:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375073#M818051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then may be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Date#(Left(Date(OrderDate, 'DD/MM/YYYY'), 5), 'YY/MM'), 'YY/MM')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375073#M818051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert YY/MM/YYYY to YY/MM</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375074#M818052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. It works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Sunny and others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-YY-MM-YYYY-to-YY-MM/m-p/1375074#M818052</guid>
      <dc:creator>sajalgour2309</dc:creator>
      <dc:date>2017-08-24T17:46:57Z</dc:date>
    </item>
  </channel>
</rss>

