<?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 not working in expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-expression/m-p/1627916#M46722</link>
    <description>&lt;P&gt;'{}' is not required in if statement.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;num(Sum(if(right(IAC,2)='A1',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(Scenario=$(vScenario1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(right(business,5)='Ratio',value*100,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value))))/Unit_Value,'$(vDecimal)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check also if your variable has '=' at the beginning .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 04:12:26 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-09-25T04:12:26Z</dc:date>
    <item>
      <title>Variable not working in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-expression/m-p/1627683#M46715</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am facing issue with a variable in my expression. Even if i hard code the value for the scenario my expression is not working. When ever i comment the scenario part the expression is working fine. . I want to compare 2 scenarios based on the selections. Scenario 1 and scenario 2. For this i have added the 2 scenario variables as dimensions and the below expression.&amp;nbsp;Please can someone look into this?&lt;/P&gt;&lt;P&gt;num(Sum(if(right(IAC,2)='A1',&lt;BR /&gt;if(Scenario={'$(vScenario1)'},&lt;BR /&gt;if(right(business,5)='Ratio',value*100,&lt;BR /&gt;value))))/Unit_Value,'$(vDecimal)')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 18:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-expression/m-p/1627683#M46715</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2019-09-24T18:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-expression/m-p/1627916#M46722</link>
      <description>&lt;P&gt;'{}' is not required in if statement.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;num(Sum(if(right(IAC,2)='A1',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(Scenario=$(vScenario1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(right(business,5)='Ratio',value*100,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value))))/Unit_Value,'$(vDecimal)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check also if your variable has '=' at the beginning .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 04:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-expression/m-p/1627916#M46722</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-09-25T04:12:26Z</dc:date>
    </item>
  </channel>
</rss>

