<?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 Generate a dynamic variable for evaluation / substitution in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Generate-a-dynamic-variable-for-evaluation-substitution/m-p/1699165#M53530</link>
    <description>&lt;P&gt;I want to dynamically generate a variable that can be evaluated.&lt;/P&gt;&lt;P&gt;These are the 2 methods that I have attempted but they are not working.&lt;/P&gt;&lt;P&gt;The dashKPI1% and dashKPI2% are names of selections the user can pick on the screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$('v' &amp;amp; only(dashKPI1%) &amp;amp; 'Revenue') - $('v' &amp;amp; only(dashKPI2%) &amp;amp; 'Revenue')&lt;/P&gt;&lt;P&gt;$(=('v' &amp;amp; only(dashKPI1%) &amp;amp; 'Revenue')) - $(=('v' &amp;amp; only(dashKPI2%) &amp;amp; 'Revenue'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should end up giving me something like $(vCurrentRevenue)-$(vPriorRevenue) and then display the number.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:41:37 GMT</pubDate>
    <dc:creator>FMDF</dc:creator>
    <dc:date>2024-11-16T18:41:37Z</dc:date>
    <item>
      <title>Generate a dynamic variable for evaluation / substitution</title>
      <link>https://community.qlik.com/t5/App-Development/Generate-a-dynamic-variable-for-evaluation-substitution/m-p/1699165#M53530</link>
      <description>&lt;P&gt;I want to dynamically generate a variable that can be evaluated.&lt;/P&gt;&lt;P&gt;These are the 2 methods that I have attempted but they are not working.&lt;/P&gt;&lt;P&gt;The dashKPI1% and dashKPI2% are names of selections the user can pick on the screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$('v' &amp;amp; only(dashKPI1%) &amp;amp; 'Revenue') - $('v' &amp;amp; only(dashKPI2%) &amp;amp; 'Revenue')&lt;/P&gt;&lt;P&gt;$(=('v' &amp;amp; only(dashKPI1%) &amp;amp; 'Revenue')) - $(=('v' &amp;amp; only(dashKPI2%) &amp;amp; 'Revenue'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should end up giving me something like $(vCurrentRevenue)-$(vPriorRevenue) and then display the number.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Generate-a-dynamic-variable-for-evaluation-substitution/m-p/1699165#M53530</guid>
      <dc:creator>FMDF</dc:creator>
      <dc:date>2024-11-16T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a dynamic variable for evaluation / substitution</title>
      <link>https://community.qlik.com/t5/App-Development/Generate-a-dynamic-variable-for-evaluation-substitution/m-p/1699258#M53536</link>
      <description>&lt;P&gt;This should work as you have shown,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$(=('v' &amp;amp; only(dashKPI1%) &amp;amp; 'Revenue')) - $(=('v' &amp;amp; only(dashKPI2%) &amp;amp; 'Revenue'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Although if user select more than one name selection at a time then it wont work if &lt;SPAN&gt;dashKPI1% &amp;amp;&amp;nbsp;dashKPI2%&amp;nbsp; are fields&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Best way is to use variable for&amp;nbsp;&lt;SPAN&gt;dashKPI1% &amp;amp;&amp;nbsp;dashKPI2% to ensure one selection is made at a time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use dynamic variable and put value as&amp;nbsp; Concat(dashKPI1%,'|') to get it in drop down list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please show your entire table containing&amp;nbsp;dashKPI1% &amp;amp;&amp;nbsp;dashKPI2%&amp;nbsp;&lt;/SPAN&gt;!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Generate-a-dynamic-variable-for-evaluation-substitution/m-p/1699258#M53536</guid>
      <dc:creator>IamAlbinAntony</dc:creator>
      <dc:date>2020-05-06T06:05:57Z</dc:date>
    </item>
  </channel>
</rss>

