<?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 a string as a fieldname in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1603637#M444530</link>
    <description>&lt;P&gt;I'm wondering whether this approach can work for total &amp;lt;field&amp;gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;It works fine:&lt;/U&gt; if within &amp;lt;&amp;gt; I write MyField , the formula then looks the following way: &amp;nbsp;sum(VALUE) / sum(total &amp;lt;MyField&amp;gt;&amp;nbsp; VALUE)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;PROBLEM&lt;/U&gt;&lt;/STRONG&gt;: MyField variates due to the drilling down, so that it can be MyField1,MyField2,MyField3...&lt;/P&gt;
&lt;P&gt;&lt;U&gt;It does not work:&lt;/U&gt; if within &amp;lt;&amp;gt; I write MyVariable containing the needed field, the formula then looks the following way: &amp;nbsp;sum(VALUE) / sum(total &amp;lt;vMyVariable&amp;gt;&amp;nbsp;VALUE)&lt;/P&gt;
&lt;P&gt;If vMyVariable returns me a string '' which should be interpreted as a field, then according to this post I need something like only($(=$(vMyVariable))) to put it within &amp;lt;&amp;gt; so that my formula looks like:&amp;nbsp;sum(VALUE) / sum(total &amp;lt;only($(=$(vMyVariable))) &amp;gt;&amp;nbsp;VALUE). Unfortunately this does not work for me.&lt;/P&gt;
&lt;P&gt;Any ideas/suggestions are very much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 11:24:39 GMT</pubDate>
    <dc:creator>did</dc:creator>
    <dc:date>2019-07-18T11:24:39Z</dc:date>
    <item>
      <title>Using a string as a fieldname</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1313243#M407952</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 would like to use a constructed string, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'TID_MONTH_ABR_' &amp;amp; Num(Month(WORK_DATE), '00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a field name in a function, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only(TID_MONTH_ABR_01)&lt;/P&gt;&lt;P&gt;=Only(TID_MONTH_ABR_02)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;=Only(TID_MONTH_ABR_12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Only('TID_MONTH_ABR_' &amp;amp; Num(Month(MONTHDATE), '00'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use these TID_ fields in a multilingual environment so the TID-field give me the correct translations in de selected language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I use the string as a field name in a function. Do I put $() or {} or&amp;nbsp; ... around it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.W.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1313243#M407952</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2017-04-25T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string as a fieldname</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1313244#M407953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be with dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Only($(=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;'TID_MONTH_ABR_' &amp;amp; Num(Month(MONTHDATE), '00')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 11:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1313244#M407953</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-25T11:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string as a fieldname</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1603637#M444530</link>
      <description>&lt;P&gt;I'm wondering whether this approach can work for total &amp;lt;field&amp;gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;It works fine:&lt;/U&gt; if within &amp;lt;&amp;gt; I write MyField , the formula then looks the following way: &amp;nbsp;sum(VALUE) / sum(total &amp;lt;MyField&amp;gt;&amp;nbsp; VALUE)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;PROBLEM&lt;/U&gt;&lt;/STRONG&gt;: MyField variates due to the drilling down, so that it can be MyField1,MyField2,MyField3...&lt;/P&gt;
&lt;P&gt;&lt;U&gt;It does not work:&lt;/U&gt; if within &amp;lt;&amp;gt; I write MyVariable containing the needed field, the formula then looks the following way: &amp;nbsp;sum(VALUE) / sum(total &amp;lt;vMyVariable&amp;gt;&amp;nbsp;VALUE)&lt;/P&gt;
&lt;P&gt;If vMyVariable returns me a string '' which should be interpreted as a field, then according to this post I need something like only($(=$(vMyVariable))) to put it within &amp;lt;&amp;gt; so that my formula looks like:&amp;nbsp;sum(VALUE) / sum(total &amp;lt;only($(=$(vMyVariable))) &amp;gt;&amp;nbsp;VALUE). Unfortunately this does not work for me.&lt;/P&gt;
&lt;P&gt;Any ideas/suggestions are very much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 11:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-string-as-a-fieldname/m-p/1603637#M444530</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2019-07-18T11:24:39Z</dc:date>
    </item>
  </channel>
</rss>

