<?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: Definition of variable containing another variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601320#M44499</link>
    <description>&lt;P&gt;Hi Sergey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, the missing &lt;STRONG&gt;$(&lt;/STRONG&gt;vVar&lt;STRONG&gt;)&lt;/STRONG&gt; was the issue. The formula itself was giving the right results but was misused into the calculation after.&lt;/P&gt;&lt;P&gt;Actually, it would not be but the variable was used further on into Set analysis and was not evaluated at all.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 11:01:53 GMT</pubDate>
    <dc:creator>GabrielOtet</dc:creator>
    <dc:date>2019-07-11T11:01:53Z</dc:date>
    <item>
      <title>Definition of variable containing another variable</title>
      <link>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601277#M44490</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm targeting to define a variable and the definition contain another variable(s).&lt;/P&gt;&lt;P&gt;Theoretically, it should work, practically I get all the time 0 as the output value.&lt;/P&gt;&lt;P&gt;That's why I just copy and paste the definition into a field and the values were the one expected (the definition is correct then). Most probably I'm missing something about it but I don't know what.&lt;/P&gt;&lt;P&gt;The variables are:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vBefAft&lt;/STRONG&gt; / &lt;STRONG&gt;vTransferService&lt;/STRONG&gt; / &lt;STRONG&gt;v_Before&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='Before' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='0', fractile({&amp;lt;dbName={'=right(dbName,4)= &lt;FONT color="#FF0000"&gt;v_Before&lt;/FONT&gt;'}, Field1={'DL'}, Field2={'Yes'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='Before' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='1', fractile({&amp;lt;dbName={'=right(dbName,4)= &lt;FONT color="#FF0000"&gt;v_Before&lt;/FONT&gt;'}, Field1={'UL'}, Field2={'Yes'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='Before' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='2', fractile({&amp;lt;dbName={'=right(dbName,4)= &lt;FONT color="#FF0000"&gt;v_Before&lt;/FONT&gt;'}, Field1={'DL'}, Field2={'No'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='Before' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='3', fractile({&amp;lt;dbName={'=right(dbName,4)=&lt;FONT color="#FF0000"&gt;v_Before&lt;/FONT&gt;'}, Field1={'UL'}, Field2={'No'}&amp;gt;}Field3, 0.1)/1000,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='After' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='0', fractile({&amp;lt;dbName={'=right(dbName,4)=&lt;FONT color="#FF0000"&gt;v_After&lt;/FONT&gt;'}, Field1={'DL'}, Field2={'Yes'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='After' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='1', fractile({&amp;lt;dbName={'=right(dbName,4)=&lt;FONT color="#FF0000"&gt;v_After&lt;/FONT&gt;'}, Field1={'UL'}, Field2={'Yes'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='After' AND&lt;FONT color="#FF0000"&gt; vTransferService&lt;/FONT&gt;='2', fractile({&amp;lt;dbName={'=right(dbName,4)=&lt;FONT color="#FF0000"&gt;v_After&lt;/FONT&gt;'}, Field1={'DL'}, Field2={'No'}&amp;gt;}Field3, 0.1)/1000,&lt;BR /&gt;if(&lt;FONT color="#FF0000"&gt;vBefAft&lt;/FONT&gt;='After' AND &lt;FONT color="#FF0000"&gt;vTransferService&lt;/FONT&gt;='3', fractile({&amp;lt;dbName={'=right(dbName,4)=&lt;FONT color="#FF0000"&gt;v_After&lt;/FONT&gt;'}, Field1={'UL'}, Field2={'No'}&amp;gt;}Field3, 0.1)/1000))))))))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601277#M44490</guid>
      <dc:creator>GabrielOtet</dc:creator>
      <dc:date>2024-11-16T05:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Definition of variable containing another variable</title>
      <link>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601282#M44491</link>
      <description>&lt;P&gt;Usually, if a variable value is another variable you need to expand it with $()&lt;/P&gt;&lt;P&gt;eg vVar has value eCount, which has value Count(Something)&lt;/P&gt;&lt;P&gt;in order to get it all working&amp;nbsp; you need to use $(vVar)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also see how everything is expanded, when you edit expression in Expression Editor (click f sight on the right hand side)&lt;/P&gt;&lt;P&gt;Another way to see what's going on is to big expression into parts and test it separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601282#M44491</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2019-07-11T09:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Definition of variable containing another variable</title>
      <link>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601320#M44499</link>
      <description>&lt;P&gt;Hi Sergey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, the missing &lt;STRONG&gt;$(&lt;/STRONG&gt;vVar&lt;STRONG&gt;)&lt;/STRONG&gt; was the issue. The formula itself was giving the right results but was misused into the calculation after.&lt;/P&gt;&lt;P&gt;Actually, it would not be but the variable was used further on into Set analysis and was not evaluated at all.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 11:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Definition-of-variable-containing-another-variable/m-p/1601320#M44499</guid>
      <dc:creator>GabrielOtet</dc:creator>
      <dc:date>2019-07-11T11:01:53Z</dc:date>
    </item>
  </channel>
</rss>

