<?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: interpret String as field: sum(total &amp;lt;Field&amp;gt; VALUE) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/interpret-String-as-field-sum-total-lt-Field-gt-VALUE/m-p/1603881#M44692</link>
    <description>&lt;P&gt;So this has not worked for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(VALUE) / Sum(TOTAL &amp;lt;$(='[' &amp;amp; VariableNameHere &amp;amp; ']')&amp;gt; VALUE)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 18 Jul 2019 18:41:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-07-18T18:41:18Z</dc:date>
    <item>
      <title>interpret String as field: sum(total &lt;Field&gt; VALUE)</title>
      <link>https://community.qlik.com/t5/App-Development/interpret-String-as-field-sum-total-lt-Field-gt-VALUE/m-p/1603650#M44678</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm facing an issue of how to make the formula interpret a string as a field to be able to limit my calculations only to the selected value of this field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Details:&lt;/P&gt;
&lt;P&gt;There is a drill down dimension in a scatter plot. If user selects one bubble he then drills down to the next level seeing bubbles belonging to the selected bubble.&lt;/P&gt;
&lt;P&gt;In this case the measure calculating sum(value) for these bubbles must calculate the % according to the following formula:&lt;/P&gt;
&lt;P&gt;sum(VALUE) / sum(total &amp;lt;MyField&amp;gt; VALUE)&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 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 VALUE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It've tried out all possible combinations of how MyVariable should be and how do I use it within &amp;lt;&amp;gt; but all in vain.&lt;/P&gt;
&lt;P&gt;Even this post did not help me: &lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Using-a-string-as-a-fieldname/td-p/1313243" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Using-a-string-as-a-fieldname/td-p/1313243&lt;/A&gt; (may be because my variable field lands within &amp;lt;&amp;gt;?).&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 11:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/interpret-String-as-field-sum-total-lt-Field-gt-VALUE/m-p/1603650#M44678</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2019-07-18T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: interpret String as field: sum(total &lt;Field&gt; VALUE)</title>
      <link>https://community.qlik.com/t5/App-Development/interpret-String-as-field-sum-total-lt-Field-gt-VALUE/m-p/1603881#M44692</link>
      <description>&lt;P&gt;So this has not worked for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(VALUE) / Sum(TOTAL &amp;lt;$(='[' &amp;amp; VariableNameHere &amp;amp; ']')&amp;gt; VALUE)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 18:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/interpret-String-as-field-sum-total-lt-Field-gt-VALUE/m-p/1603881#M44692</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-18T18:41:18Z</dc:date>
    </item>
  </channel>
</rss>

