<?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 Load separate columns in loop in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773205#M59855</link>
    <description>&lt;P&gt;I have a data set that has the date (month and year) as a field with the value of interest in each column for the corresponding date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a snapshot of the data file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46723i65CCFE2A214A7FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I would like in the available fields is&lt;/P&gt;&lt;P&gt;Type, Route Number, Route Name, Date,&amp;nbsp; people&lt;/P&gt;&lt;P&gt;Below is my load script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am only able to load the first column values, but I'm still missing the expected date value (yyyy_mm)&lt;/P&gt;&lt;P&gt;set vmonths = 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', 'January1', 'February1', 'March1', 'April1', 'May1', 'June1';&lt;/P&gt;&lt;P&gt;for each vmonth in $(vmonths)&lt;BR /&gt;Trace $(vmonth);&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"Type",&lt;BR /&gt;"Route Number",&lt;BR /&gt;"Route Name",&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if($(vmonth) = 'January', '2019_01',if($(vmonth) = 'February', '2019_02',if($(vmonth) = 'March', '2019_03',if($(vmonth) = 'April', '2019_04',&lt;BR /&gt;if($(vmonth) = 'May', '2019_05',if($(vmonth) = 'June', '2019_06',if($(vmonth) = 'July', '2019_07',if($(vmonth) = 'August', '2019_08',&lt;BR /&gt;if($(vmonth) = 'September', '2019_09',if($(vmonth) = 'October', '2019_10',if($(vmonth) = 'November', '2019_11',if($(vmonth) = 'December', '2019_12',&lt;BR /&gt;if($(vmonth) = 'January1', '2020_01',if($(vmonth) = 'February1', '2020_02',if($(vmonth) = 'March1', '2020_03',if($(vmonth) = 'April1', '2020_04',&lt;BR /&gt;if($(vmonth) = 'May1', '2020_05',if($(vmonth) = 'June1', '2020_06', $(vmonth))))))))))))))))))) as year_month,&lt;/P&gt;&lt;P&gt;$(vmonth) as people&lt;BR /&gt;&lt;BR /&gt;FROM [file];&lt;BR /&gt;Next vmonth;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:37:55 GMT</pubDate>
    <dc:creator>beaubellamy</dc:creator>
    <dc:date>2024-11-16T17:37:55Z</dc:date>
    <item>
      <title>Load separate columns in loop</title>
      <link>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773205#M59855</link>
      <description>&lt;P&gt;I have a data set that has the date (month and year) as a field with the value of interest in each column for the corresponding date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a snapshot of the data file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46723i65CCFE2A214A7FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I would like in the available fields is&lt;/P&gt;&lt;P&gt;Type, Route Number, Route Name, Date,&amp;nbsp; people&lt;/P&gt;&lt;P&gt;Below is my load script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am only able to load the first column values, but I'm still missing the expected date value (yyyy_mm)&lt;/P&gt;&lt;P&gt;set vmonths = 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', 'January1', 'February1', 'March1', 'April1', 'May1', 'June1';&lt;/P&gt;&lt;P&gt;for each vmonth in $(vmonths)&lt;BR /&gt;Trace $(vmonth);&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"Type",&lt;BR /&gt;"Route Number",&lt;BR /&gt;"Route Name",&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if($(vmonth) = 'January', '2019_01',if($(vmonth) = 'February', '2019_02',if($(vmonth) = 'March', '2019_03',if($(vmonth) = 'April', '2019_04',&lt;BR /&gt;if($(vmonth) = 'May', '2019_05',if($(vmonth) = 'June', '2019_06',if($(vmonth) = 'July', '2019_07',if($(vmonth) = 'August', '2019_08',&lt;BR /&gt;if($(vmonth) = 'September', '2019_09',if($(vmonth) = 'October', '2019_10',if($(vmonth) = 'November', '2019_11',if($(vmonth) = 'December', '2019_12',&lt;BR /&gt;if($(vmonth) = 'January1', '2020_01',if($(vmonth) = 'February1', '2020_02',if($(vmonth) = 'March1', '2020_03',if($(vmonth) = 'April1', '2020_04',&lt;BR /&gt;if($(vmonth) = 'May1', '2020_05',if($(vmonth) = 'June1', '2020_06', $(vmonth))))))))))))))))))) as year_month,&lt;/P&gt;&lt;P&gt;$(vmonth) as people&lt;BR /&gt;&lt;BR /&gt;FROM [file];&lt;BR /&gt;Next vmonth;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773205#M59855</guid>
      <dc:creator>beaubellamy</dc:creator>
      <dc:date>2024-11-16T17:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load separate columns in loop</title>
      <link>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773321#M59872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why not you try to Cross table function.&lt;/P&gt;&lt;P&gt;It will give your required result.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ksrinivasan&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 11:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773321#M59872</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-11T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load separate columns in loop</title>
      <link>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773556#M59909</link>
      <description>&lt;P&gt;I wasn't aware of this function. Thanks its exactly what I need.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 01:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-separate-columns-in-loop/m-p/1773556#M59909</guid>
      <dc:creator>beaubellamy</dc:creator>
      <dc:date>2021-01-12T01:45:40Z</dc:date>
    </item>
  </channel>
</rss>

