<?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: Variables as columns issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010727#M342968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just reached it at the same time you sent me your answer.. thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 04:05:51 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2015-10-07T04:05:51Z</dc:date>
    <item>
      <title>Variables as columns issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010725#M342966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script that load multiple files and use for functions to loop over each year and then another for to loop over each month to load a set of files..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to add the year var and month var as columns..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the year works fine but when I add the month var as column I loose all my data and no columns show on the data model..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vYear=2014 TO 2015 &lt;/P&gt;&lt;P&gt;for each MonthName in 'January' ,'February','March','April','May','June', 'July', 'August', 'September', 'October', 'November', 'December'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD $(vYear) as ReportYear, //work fine and shows the right value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(MonthName) as ReportMonth, cause errors and it cause the qvw to show no columns (Note: the errorMode=0 above)&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.abc.com/~/media/Files/$(vYear)/data%20$(MonthName)%20$(vYear).xls" rel="nofollow"&gt;http://www.abc.com/~/media/Files/$(vYear)/data%20$(MonthName)%20$(vYear).xls&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 1 lines, table is [Info$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 03:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010725#M342966</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-10-07T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variables as columns issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010726#M342967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD $(vYear) as ReportYear, //work fine and shows the right value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(MonthName)' as ReportMonth,&amp;nbsp; // Need to give single quotes for strings or dates otherwise you will get error &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;B,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;C&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.abc.com/~/media/Files/$(vYear)/data%20$(MonthName)%20$(vYear).xls" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;http://www.abc.com/~/media/Files/$(vYear)/data%20$(MonthName)%20$(vYear).xls&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(biff, embedded labels, header is 1 lines, table is [Info$]);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 04:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010726#M342967</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-07T04:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variables as columns issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010727#M342968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just reached it at the same time you sent me your answer.. thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 04:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010727#M342968</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-10-07T04:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variables as columns issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010728#M342969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change the line as &lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;$(MonthName)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;as ReportMonth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Edit:&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;Ignore this as Jagan Mohan also suggested the same (I was typing this and I didn't see Jagan's reply).&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 04:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-as-columns-issue/m-p/1010728#M342969</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-10-07T04:13:44Z</dc:date>
    </item>
  </channel>
</rss>

