<?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: Covert Date Format from MM/YYYY TO MMM-YYYY in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1768301#M454437</link>
    <description>&lt;P&gt;Thanks dilipranjith,&lt;/P&gt;&lt;P&gt;This part did work:&amp;nbsp;Date(Date#(mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4),'MM/YYYY'),'MMM-YYYY') as Year _Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FXVOls:&lt;BR /&gt;LOAD&lt;BR /&gt;Status,&lt;BR /&gt;Product,&lt;BR /&gt;[Last Amend Date],&lt;BR /&gt;[Trading_Entity],&lt;BR /&gt;Date(Date#(mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4),'MM/YYYY'),'MMM-YYYY') as Year _Month,&lt;BR /&gt;Date(AddMonths(date#(Year_Month),-1),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;But when I add the 2nd line to the script&amp;nbsp;&lt;SPAN&gt;Date(AddMonths(date#(Year_Month),-1),'MMM-YYYY')....this doesnt work and says cannot find Field Year_Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 14:51:39 GMT</pubDate>
    <dc:creator>arpita</dc:creator>
    <dc:date>2020-12-14T14:51:39Z</dc:date>
    <item>
      <title>Covert Date Format from MM/YYYY TO MMM-YYYY</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1767946#M454406</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I created my date field from the file name extension which is in MM/YYYY format but I need it in MMM-YYYY format.&lt;/P&gt;&lt;P&gt;File Name :&amp;nbsp;TTA Reports202011010404288823&lt;/P&gt;&lt;P&gt;FXVOls:&lt;BR /&gt;LOAD&lt;BR /&gt;Status,&lt;BR /&gt;Product,&lt;BR /&gt;[Last Amend Date],&lt;BR /&gt;[Trading_Entity],&lt;BR /&gt;mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4) as Year _Month&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;The output of Year_Month is 11/2020 but I want it as Nov-2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd question: Is there a possibility that I can have my QV app reflecting Oct-2020 instead of Nov-2020 from the same file string&amp;nbsp;TTA Reports202011010404288823&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 13:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1767946#M454406</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2020-12-11T13:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Covert Date Format from MM/YYYY TO MMM-YYYY</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1767964#M454408</link>
      <description>&lt;P&gt;Change to something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date(Date#(mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4),'MM/YYYY'),'MMM-YYYY') as Year _Month&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding your second question. use Add months function around the date# expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(AddMonths(date#(...),-1),'MMM-YYYY')&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 14:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1767964#M454408</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-12-11T14:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Covert Date Format from MM/YYYY TO MMM-YYYY</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1768301#M454437</link>
      <description>&lt;P&gt;Thanks dilipranjith,&lt;/P&gt;&lt;P&gt;This part did work:&amp;nbsp;Date(Date#(mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4),'MM/YYYY'),'MMM-YYYY') as Year _Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FXVOls:&lt;BR /&gt;LOAD&lt;BR /&gt;Status,&lt;BR /&gt;Product,&lt;BR /&gt;[Last Amend Date],&lt;BR /&gt;[Trading_Entity],&lt;BR /&gt;Date(Date#(mid(FileName(),46,2)&amp;amp;'/'&amp;amp;mid(FileName(),42,4),'MM/YYYY'),'MMM-YYYY') as Year _Month,&lt;BR /&gt;Date(AddMonths(date#(Year_Month),-1),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;But when I add the 2nd line to the script&amp;nbsp;&lt;SPAN&gt;Date(AddMonths(date#(Year_Month),-1),'MMM-YYYY')....this doesnt work and says cannot find Field Year_Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 14:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-Date-Format-from-MM-YYYY-TO-MMM-YYYY/m-p/1768301#M454437</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2020-12-14T14:51:39Z</dc:date>
    </item>
  </channel>
</rss>

