<?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: using the Fieldname to retrieve fieldvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284841#M499194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=sum(pick($FieldNo,A, B, C))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or more generalized&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=sum(pick($FieldNo, $(vFieldList)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second option requires you to define the vFieldList variable as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vFieldList = =concat({1} $Field, ',');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note two equal signs. The = must be part of the variable def.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 20:04:15 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2011-07-15T20:04:15Z</dc:date>
    <item>
      <title>using the Fieldname to retrieve fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284839#M499192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a fields named 'A' untill 'Z'. In my chart the dimension is $FieldNo and I want one expression so that when $FieldNo = 1 -&amp;gt; sum(A) ; $FieldNo=2 -&amp;gt; sum(B), etc. I tried making an expression while loading, being 'sum(A)', etc, but that works just for one single value.&lt;/P&gt;&lt;P&gt;I want it to work what in Excel the function INDIRECT() does!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 16:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284839#M499192</guid>
      <dc:creator />
      <dc:date>2011-07-15T16:24:43Z</dc:date>
    </item>
    <item>
      <title>using the Fieldname to retrieve fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284840#M499193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FieldValue($Field,1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(FieldValue($Field,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble understanding the exact result you needed but this might help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 17:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284840#M499193</guid>
      <dc:creator>patrickanderson</dc:creator>
      <dc:date>2011-07-15T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: using the Fieldname to retrieve fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284841#M499194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=sum(pick($FieldNo,A, B, C))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or more generalized&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=sum(pick($FieldNo, $(vFieldList)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second option requires you to define the vFieldList variable as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vFieldList = =concat({1} $Field, ',');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note two equal signs. The = must be part of the variable def.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 20:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284841#M499194</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-07-15T20:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: using the Fieldname to retrieve fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284842#M499195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; A little explanation might help:&lt;/P&gt;&lt;P&gt;I load about 50 KPI's from an Excel-format for every location and every week. Then I want to represent for a selected week the data as follows: dimension 'location' in the x-direction of the table and the KPI's in the y-direction. To prevent that I have to write a lot of if-statements to get the KPI's in the y-direction, I was trying to use $Field and/or $FieldNo as dimension and just one Sum-statement which is based on $Field or $FieldNo to determine what field should be calculated. I thought using the value of $Field as the fieldname in sum(). But maybe there is some other way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made it more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liesbeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 20:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-the-Fieldname-to-retrieve-fieldvalue/m-p/284842#M499195</guid>
      <dc:creator />
      <dc:date>2011-07-16T20:37:41Z</dc:date>
    </item>
  </channel>
</rss>

