<?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 Multiple Conditions in an Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544573#M39253</link>
    <description>&lt;P&gt;I have an expression that I am using in a table.&lt;/P&gt;&lt;P&gt;=SUM(IF(PriceScale = 'LevelA', QTY).&lt;/P&gt;&lt;P&gt;I want to introduce an additional piece of logic to this expression.&lt;/P&gt;&lt;P&gt;I have an inline table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[PriceScale, Capacity&lt;/P&gt;&lt;P&gt;LevelA, 1000];&lt;/P&gt;&lt;P&gt;My end goal is to be able to say that if 300 tickets have been sold to LevelA, there is a remaining capacity of 700.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dimension for my table is the PriceScale.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 20:25:47 GMT</pubDate>
    <dc:creator>EvanBarrick</dc:creator>
    <dc:date>2019-02-14T20:25:47Z</dc:date>
    <item>
      <title>Multiple Conditions in an Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544573#M39253</link>
      <description>&lt;P&gt;I have an expression that I am using in a table.&lt;/P&gt;&lt;P&gt;=SUM(IF(PriceScale = 'LevelA', QTY).&lt;/P&gt;&lt;P&gt;I want to introduce an additional piece of logic to this expression.&lt;/P&gt;&lt;P&gt;I have an inline table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[PriceScale, Capacity&lt;/P&gt;&lt;P&gt;LevelA, 1000];&lt;/P&gt;&lt;P&gt;My end goal is to be able to say that if 300 tickets have been sold to LevelA, there is a remaining capacity of 700.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dimension for my table is the PriceScale.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544573#M39253</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2019-02-14T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions in an Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544577#M39254</link>
      <description>May be thee below.&lt;BR /&gt;Capacity - SUM(IF(PriceScale = 'LevelA', QTY))</description>
      <pubDate>Thu, 14 Feb 2019 20:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544577#M39254</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T20:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions in an Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544581#M39256</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My visualization is a straight Table (as below)&lt;/P&gt;&lt;P&gt;PriceScale&amp;nbsp; &amp;nbsp; &amp;nbsp; QTY&lt;/P&gt;&lt;P&gt;LevelA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/P&gt;&lt;P&gt;LevelB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300&lt;/P&gt;&lt;P&gt;LevelC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression works, but only for LevelA, as we are calling that out in the expression. How can we make this apply to all?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544581#M39256</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2019-02-14T20:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions in an Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544586#M39257</link>
      <description>&lt;P&gt;Yes .. It's because you have specified A in the expression&amp;nbsp; Capacity - SUM(IF(PriceScale =&lt;FONT color="#FF6600"&gt; 'LevelA',&lt;/FONT&gt; QTY))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TO get for all try below&lt;/P&gt;&lt;PRE&gt;Capacity - SUM(QTY) &lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Conditions-in-an-Expression/m-p/1544586#M39257</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T21:01:20Z</dc:date>
    </item>
  </channel>
</rss>

