<?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: How to load a table with month stored above headers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726099#M591979</link>
    <description>&lt;P&gt;If I understood correctly ,one solution:&lt;/P&gt;&lt;P&gt;Suppoose My Input file is and excel with :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 345px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37143iEB63846693ECACBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So initial header A,B,C,D&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

First 1 load Date(RangeMax(A,B,C,D),'MMM-YY') as Date

FROM
.\Classeur1.xlsx
(ooxml, explicit labels, table is Feuil1);

left join

load  [Header 1], 
     [Header 2], 
     [Header 3], 
     [Header 4]
FROM
.\Classeur1.xlsx
(ooxml, embedded labels, header is 2 lines, table is Feuil1);&lt;/LI-CODE&gt;&lt;P&gt;you can change A,B,C,D by your header initial&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 545px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37144i62136B787B4BBC36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 13:04:42 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-07-08T13:04:42Z</dc:date>
    <item>
      <title>How to load a table with month stored above headers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726081#M591978</link>
      <description>&lt;P&gt;Hi QV Experts, my first post and new to QV scripting. I am trying to load the below sample data with the "month-year" under Header 5 (as Month), every line to repeat (Sep-19) but unsure how to script this in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading the headers and the data content is easy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple tables/files to load across in the same format too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help! Cheers&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" width="256" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;Sep-19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Title&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Header 1&lt;/TD&gt;&lt;TD&gt;Header 2&lt;/TD&gt;&lt;TD&gt;Header 3&lt;/TD&gt;&lt;TD&gt;Header 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;a&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;b&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;c&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;d&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 12:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726081#M591978</guid>
      <dc:creator>Redcoal</dc:creator>
      <dc:date>2020-07-08T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a table with month stored above headers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726099#M591979</link>
      <description>&lt;P&gt;If I understood correctly ,one solution:&lt;/P&gt;&lt;P&gt;Suppoose My Input file is and excel with :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 345px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37143iEB63846693ECACBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So initial header A,B,C,D&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

First 1 load Date(RangeMax(A,B,C,D),'MMM-YY') as Date

FROM
.\Classeur1.xlsx
(ooxml, explicit labels, table is Feuil1);

left join

load  [Header 1], 
     [Header 2], 
     [Header 3], 
     [Header 4]
FROM
.\Classeur1.xlsx
(ooxml, embedded labels, header is 2 lines, table is Feuil1);&lt;/LI-CODE&gt;&lt;P&gt;you can change A,B,C,D by your header initial&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 545px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37144i62136B787B4BBC36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726099#M591979</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-08T13:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a table with month stored above headers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726302#M591980</link>
      <description>&lt;P&gt;Thanks for the recommendation 'Taoufiq', I wasn't able to get it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed your method but couldn't make out the RangeMax function as is essentially cell D1. I will be combining multiple files, so that date will change for each file..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the table function to remove rows/columns I don't need in order to get the cell I want. Is ugly in the codes but is sort of producing what i wanted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Redcoal_0-1594254056714.png" style="width: 657px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37171iFA3BBB54B45466EF/image-dimensions/657x647?v=v2" width="657" height="647" role="button" title="Redcoal_0-1594254056714.png" alt="Redcoal_0-1594254056714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another small complexity I am trying to tackle is cell D1 is stored as 'Text'. The field is actually 'September 2019'. So will need to somehow convert this to a readable date/month function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips on coverting the text? I have been reading up from the below but not sure how to get it to work from my [Month Year] field.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Convert-text-to-date-format/td-p/98370" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Convert-text-to-date-format/td-p/98370&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 00:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726302#M591980</guid>
      <dc:creator>Redcoal</dc:creator>
      <dc:date>2020-07-09T00:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a table with month stored above headers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726373#M591981</link>
      <description>&lt;P&gt;to convert 'September 2019' to date :&lt;/P&gt;&lt;P&gt;First Add :&lt;/P&gt;&lt;P&gt;Set LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 766px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37188i63D53CB4EF9120BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then you can use :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Date(Date#('September 2019','MMMM YYYY'),'NEWFORMAT')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NEWFORMAT is the expected date format&lt;/P&gt;&lt;P&gt;for exemple :&lt;/P&gt;&lt;P&gt;=Date(Date#('September 2019','MMMM YYYY'),'MM-YY') the output is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 304px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37189i55D7255FE451629F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 08:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1726373#M591981</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-09T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a table with month stored above headers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1727164#M591982</link>
      <description>&lt;P&gt;Your method works for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 01:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-table-with-month-stored-above-headers/m-p/1727164#M591982</guid>
      <dc:creator>Redcoal</dc:creator>
      <dc:date>2020-07-13T01:48:13Z</dc:date>
    </item>
  </channel>
</rss>

