<?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: Variable inside variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525459#M37750</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ive seen the expression, seems to me like theres a syntax error on the middle, missing a comma here&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(vUserChoice1 = 'B',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where it should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;))),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(vUserChoice1 = 'B',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;If(vUserChoice1 = 'A',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'AA',$(vUserChooseAA),&lt;BR /&gt;If(vUserChoice2 = 'AB',$(vUserChooseAB),&lt;BR /&gt;If(vUserChoice2 = 'AC',$(vUserChooseAC)&lt;BR /&gt;))),&lt;BR /&gt;If(vUserChoice1 = 'B',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'BA',$(vUserChooseBA),&lt;BR /&gt;If(vUserChoice2 = 'BB',$(vUserChooseBB),&lt;BR /&gt;If(vUserChoice2 = 'BC',$(vUserChooseBC)&lt;BR /&gt;))))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Ive idented the expression in the app since to me it becomes clearer as to the if / then / else of every statement.&lt;BR /&gt;Don't know the other things you need to do with the variables, but attached a quick example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 14:11:05 GMT</pubDate>
    <dc:creator>felipedl</dc:creator>
    <dc:date>2019-01-02T14:11:05Z</dc:date>
    <item>
      <title>Variable inside variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525432#M37746</link>
      <description>&lt;P&gt;I have a variable called vUserChoices with definition below:&lt;/P&gt;&lt;P&gt;If(vUserChoice1 = 'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If(vUserChoice2 = 'AA', $(vUserChooseAA),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If&lt;SPAN&gt;(vUserChoice2 = 'AB', $(vUserChooseAB),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If(vUserChoice2 = 'AC', $(vUserChooseAC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(vUserChoice1 = 'B',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If(vUserChoice2 = 'BA', $(vUserChooseBA),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If&lt;SPAN&gt;(vUserChoice2 = 'BB', $(vUserChooseBB),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;If(vUserChoice2 = 'BC', $(vUserChooseBC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Later on, in my chart expression, I will use Count($(vUserChoices)), Sum($(vUserChoices)), etc. , so I suppose vUserChoices would be replaced by&amp;nbsp;vUserChooseXX based on&amp;nbsp;vUserChoice1 and&amp;nbsp;vUserChoice2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems the&amp;nbsp;numbers I get is not what I expect. Is there anything wrong here with my syntax?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525432#M37746</guid>
      <dc:creator>Nighthawk</dc:creator>
      <dc:date>2019-01-02T13:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525459#M37750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ive seen the expression, seems to me like theres a syntax error on the middle, missing a comma here&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(vUserChoice1 = 'B',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where it should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;))),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(vUserChoice1 = 'B',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;If(vUserChoice1 = 'A',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'AA',$(vUserChooseAA),&lt;BR /&gt;If(vUserChoice2 = 'AB',$(vUserChooseAB),&lt;BR /&gt;If(vUserChoice2 = 'AC',$(vUserChooseAC)&lt;BR /&gt;))),&lt;BR /&gt;If(vUserChoice1 = 'B',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'BA',$(vUserChooseBA),&lt;BR /&gt;If(vUserChoice2 = 'BB',$(vUserChooseBB),&lt;BR /&gt;If(vUserChoice2 = 'BC',$(vUserChooseBC)&lt;BR /&gt;))))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Ive idented the expression in the app since to me it becomes clearer as to the if / then / else of every statement.&lt;BR /&gt;Don't know the other things you need to do with the variables, but attached a quick example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 14:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525459#M37750</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2019-01-02T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525809#M37797</link>
      <description>&lt;P&gt;Thanks for catching that missing comma. But still the numbers I get are slightly different than using the Count function directly in the chart expression like below. Is that even possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If(vUserChoice1 = 'A',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'AA',Count($(vUserChooseAA)),&lt;BR /&gt;If(vUserChoice2 = 'AB',Count($(vUserChooseAB)),&lt;BR /&gt;If(vUserChoice2 = 'AC',Count($(vUserChooseAC))&lt;BR /&gt;))),&lt;BR /&gt;If(vUserChoice1 = 'B',&lt;/P&gt;&lt;P&gt;If(vUserChoice2 = 'BA',Count($(vUserChooseBA)),&lt;BR /&gt;If(vUserChoice2 = 'BB',Count($(vUserChooseBB)),&lt;BR /&gt;If(vUserChoice2 = 'BC',Count($(vUserChooseBC))&lt;BR /&gt;))))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 12:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525809#M37797</guid>
      <dc:creator>Nighthawk</dc:creator>
      <dc:date>2019-01-03T12:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525911#M37811</link>
      <description>&lt;P&gt;I'd say its better&amp;nbsp;if you explained what the end result should be (what data you have, whats the desired result and so on),&amp;nbsp; or share the app so we can take a look.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-inside-variable/m-p/1525911#M37811</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2019-01-03T15:09:01Z</dc:date>
    </item>
  </channel>
</rss>

