<?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: column() by name not number? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095608#M364001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this in your expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(='['&amp;amp;"Usage" &amp;amp; chr(10) &amp;amp; vMonth&amp;amp;']') &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 15:04:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-23T15:04:42Z</dc:date>
    <item>
      <title>column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095604#M363997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought this would be easy to find via search, but no dice. I have a straight table/chart that uses column() references in its expressions -- e.g. Cost * column(1). I want to refer to columns not by number but by name (label). Further, many of my column names use expressions. So I might have a column label set to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;="Usage" &amp;amp; chr(10) &amp;amp; vMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part of the problem is users clicking and dragging column headers around to reorder the columns (sometimes inadvertently). This throws off some of the calculations. Rewriting the expressions to not use column references isn't really an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095604#M363997</guid>
      <dc:creator />
      <dc:date>2016-02-23T14:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095605#M363998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The changing nature (because you use expressions for column label it seems) of the column label might make it difficult, if not impossible, to refer the label names in your expression. May be use the actual expressions or put the expression in a variable and use variable to do what you are doing with the expression labels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095605#M363998</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095606#M363999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;="$(='Usage' &amp;amp; chr(10) &amp;amp; vMonth)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095606#M363999</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095607#M364000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution is to block the columns rearranging:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straigt Table -&amp;gt; Presentation -&amp;gt; Allow Drag and Drop&lt;/P&gt;&lt;P&gt;Pivot -&amp;gt; Presentation -&amp;gt; Allow Pivoting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But usually I write expressions without referencing other columns. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095607#M364000</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-02-23T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095608#M364001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this in your expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(='['&amp;amp;"Usage" &amp;amp; chr(10) &amp;amp; vMonth&amp;amp;']') &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095608#M364001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: column() by name not number?</title>
      <link>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095609#M364002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/column-by-name-not-number/m-p/1095609#M364002</guid>
      <dc:creator />
      <dc:date>2016-02-26T18:10:21Z</dc:date>
    </item>
  </channel>
</rss>

