<?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: getting Column names based on loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1640007#M447119</link>
    <description>&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET actualmonth = num(month(MonthName((now()))- 1*12)); 

Test: 
Load *, subfield(Field,'_',5) as subfield;
Load * inline [
	Field
	Q_REL_SUPLR_MO_1,
	Q_REL_SUPLR_MO_2,
	Q_REL_SUPLR_MO_3,
	Q_REL_SUPLR_MO_4,
	Q_REL_SUPLR_MO_5
] 
where $(actualmonth)&amp;lt;= 12-subfield(Field,'_',5);&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 25 Oct 2019 18:56:19 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2019-10-25T18:56:19Z</dc:date>
    <item>
      <title>getting Column names based on loop</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1639983#M447117</link>
      <description>&lt;P&gt;I am loading Quantity from a table. Quantity field is sequencial as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Q_REL_SUPLR_MO_1,&lt;BR /&gt;Q_REL_SUPLR_MO_2,&lt;BR /&gt;Q_REL_SUPLR_MO_3,&lt;BR /&gt;Q_REL_SUPLR_MO_4,&lt;BR /&gt;Q_REL_SUPLR_MO_5,&lt;BR /&gt;and so on&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement is to load fields based on the current month. For example if current month is October then it should Mo1,Mo2 and Mo3. if current month is nov then Mo1 and Mo2&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1639983#M447117</guid>
      <dc:creator>Kanstussy</dc:creator>
      <dc:date>2019-10-25T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: getting Column names based on loop</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1640007#M447119</link>
      <description>&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET actualmonth = num(month(MonthName((now()))- 1*12)); 

Test: 
Load *, subfield(Field,'_',5) as subfield;
Load * inline [
	Field
	Q_REL_SUPLR_MO_1,
	Q_REL_SUPLR_MO_2,
	Q_REL_SUPLR_MO_3,
	Q_REL_SUPLR_MO_4,
	Q_REL_SUPLR_MO_5
] 
where $(actualmonth)&amp;lt;= 12-subfield(Field,'_',5);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 25 Oct 2019 18:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1640007#M447119</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-10-25T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: getting Column names based on loop</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1640039#M447120</link>
      <description>&lt;P&gt;Do you want to show in a straight table?&lt;/P&gt;&lt;P&gt;In a simple way , add columns for each field and add " show column "conditions based on the months accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your requirement is different , please explain more clearly.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 20:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Column-names-based-on-loop/m-p/1640039#M447120</guid>
      <dc:creator>raghuchowdary</dc:creator>
      <dc:date>2019-10-25T20:25:09Z</dc:date>
    </item>
  </channel>
</rss>

