<?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 Variables within Variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253387#M25329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning All!&lt;/P&gt;&lt;P&gt;I have a use case for embedding variables within another variable to determine limits on gauges.&amp;nbsp; &lt;/P&gt;&lt;P&gt; take the following variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vInvLmtClientA:&lt;/P&gt;&lt;P&gt;If(([Bnfi Nn Client])= 'ClientA', 600,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vInvLmtClientB:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(([Bnfi Nn Client])= 'ClientB', 15000,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vInvLmtClientC:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(([Bnfi Nn Client])= 'ClientC', 10000,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The above variables define the max allowable open transactions for a given client.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I would like a variable that evaluates the selection in [Bnfi nn Client] and gives the SUM of the defined limit for the selection, and if no selection has been made, the limit should be assuming that ALL clients are selected.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you ALL!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 17:08:57 GMT</pubDate>
    <dc:creator>jheasley</dc:creator>
    <dc:date>2017-02-10T17:08:57Z</dc:date>
    <item>
      <title>Variables within Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253387#M25329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning All!&lt;/P&gt;&lt;P&gt;I have a use case for embedding variables within another variable to determine limits on gauges.&amp;nbsp; &lt;/P&gt;&lt;P&gt; take the following variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vInvLmtClientA:&lt;/P&gt;&lt;P&gt;If(([Bnfi Nn Client])= 'ClientA', 600,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vInvLmtClientB:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(([Bnfi Nn Client])= 'ClientB', 15000,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vInvLmtClientC:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(([Bnfi Nn Client])= 'ClientC', 10000,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The above variables define the max allowable open transactions for a given client.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I would like a variable that evaluates the selection in [Bnfi nn Client] and gives the SUM of the defined limit for the selection, and if no selection has been made, the limit should be assuming that ALL clients are selected.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you ALL!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253387#M25329</guid>
      <dc:creator>jheasley</dc:creator>
      <dc:date>2017-02-10T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variables within Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253388#M25330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(wildmatch(getfieldselections([Bnfi Nn Client]), 'ClientA', 'ClientB', 'ClientC', '*'), 600,15000,10000,25600)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and only if there is a multiple usage of this expression it made sense to use a variable for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 14:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253388#M25330</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-11T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables within Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253389#M25331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so i tried this, and i'm not getting the expected result.&amp;nbsp; when i select ClientA and ClientB, the upper limit sets to 25600, instead of 15600. not sure if i entered the expression incorrectly or if i didnt properly explain what i was trying to do.&amp;nbsp; It may be that what i want is not possible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253389#M25331</guid>
      <dc:creator>jheasley</dc:creator>
      <dc:date>2017-02-13T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variables within Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253390#M25332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is only a short version and it could be extended for it, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(wildmatch(getfieldselections([Bnfi Nn Client]), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ClientA', 'ClientB', 'ClientC', 'ClientA, ClientB', 'ClientA, ClientC', 'ClientB, ClientC', '*'), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 600,15000,10000,15600,10600,25000,25600)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby it made it obvious that this logic is quite expensive and if there are more selection-possibilties it would be more suitable to create an own field for these factors and then just using: sum(factor) for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253390#M25332</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-13T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variables within Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253391#M25333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - the 3 client use case is just for testing and prep, there are actually 34 clients, so while your solution very helpful and would work on a small scale, it isnt practical on a larger set.&amp;nbsp; thanks for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-within-Variables/m-p/1253391#M25333</guid>
      <dc:creator>jheasley</dc:creator>
      <dc:date>2017-02-13T13:31:37Z</dc:date>
    </item>
  </channel>
</rss>

