<?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: Get Column Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471856#M563287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem when i stumbled upon this topic. Testing this I figured out following workaround which allows the&amp;nbsp; use of dynamic names of expressions in a chart being used for other calculations in similar chart: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=chr(91) &amp;amp;'$(=XY)'&amp;nbsp; &amp;amp; chr(93))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of XY insert the expression of the column label which should be used. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 20:32:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-02T20:32:50Z</dc:date>
    <item>
      <title>Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471851#M563282</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;I have a bar chart with 4 expressions and no dimensions. It shows a bar for each one.&lt;/P&gt;&lt;P&gt;My expressions are: Reg1, Reg2, Reg3, Reg 4.&lt;/P&gt;&lt;P&gt; I know that i can reference these values in another expression by the function Column(). Like when i want a total in the chart i can use:&lt;/P&gt;&lt;P&gt;-column(1)+....+column(4)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;-Reg1+..+.Reg4 (using the names).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get the number of the columns? How can i be sure that Reg1 is column(1)?&lt;/P&gt;&lt;P&gt;Is there a formula that calculates the number of column Reg1 (which is also the first expression)? I am thinking about ColumnNo(Reg1) but it doesn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471851#M563282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471852#M563283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the labels of the expressions in your totaling expression. So Reg1+Reg2...+Reg4 will work if you set the labels of the expressions accordingly.&lt;/P&gt;&lt;P&gt;Column(1) is the first expression, Column(2) the second and so on. This is the order (top to bottom) of the expressions on the Expressions tab. The Promote and Demote button are used to change the order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471852#M563283</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-26T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471853#M563284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But is there a function that can calculate the number of Reg1 column? I am expecting that columnno(Reg1) shoul be 1 but it's not working. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471853#M563284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471854#M563285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also had similar problem, since my expression label is dyanmic, i can't really do reg1+reg2 cuz reg1 can be xyz under certain conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 70+ expressions in my table, counting them manually is just painful, i want to find out whats my current column num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 10:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471854#M563285</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2013-08-25T10:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471855#M563286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this problem - i guess there is no answer...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 12:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471855#M563286</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-02-20T12:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471856#M563287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem when i stumbled upon this topic. Testing this I figured out following workaround which allows the&amp;nbsp; use of dynamic names of expressions in a chart being used for other calculations in similar chart: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=chr(91) &amp;amp;'$(=XY)'&amp;nbsp; &amp;amp; chr(93))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of XY insert the expression of the column label which should be used. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 20:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471856#M563287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471857#M563288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I learn something new every day doing this gig.&amp;nbsp; Thanks Gysbert for contributing so much to this forum.&amp;nbsp; You truly are an MVP!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471857#M563288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T18:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471858#M563289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; will this work ColumnNo([Total]) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2016 23:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471858#M563289</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-08-28T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471859#M563290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to what Stefan Kunte says, I'm using the same expression as in the title to reference it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I've got the following 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dynamicnames.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164716_dynamicnames.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two have their names dynamically calculated depending on the user's selections. The third one will calculate the substraction of the second over the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use Column(1)-Column(2) since they will be conditioned. And I can't reference them plainly since they're going to be conditioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm using the following expression. Blue color means the same as in the expression title. Red color is what it's added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;[$(=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;only({&amp;lt;CodInstalación={$(vInstalacionSel)}&amp;gt;} Instalación)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)]&lt;/SPAN&gt;-&lt;SPAN style="color: #ff0000;"&gt;[$(=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Only(Asesor)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 09:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471859#M563290</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-05-25T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471860#M563291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 09:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471860#M563291</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-05-25T09:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471861#M563292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan!&amp;nbsp; Your formula can get a bit messy, but it really works!&amp;nbsp; Thank you!&amp;nbsp; I siplified it a little and it seems to work, just replace 'XY' with your desired column's label formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(= Chr(91) &amp;amp; 'XY' &amp;amp; Chr(93) )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 20:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Column-Number/m-p/471861#M563292</guid>
      <dc:creator>justaqlikker</dc:creator>
      <dc:date>2017-11-13T20:40:26Z</dc:date>
    </item>
  </channel>
</rss>

