<?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 Create expression when expression 1 is higher than expression 2 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028152#M347315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a straight table with 2 total sales expressions as below:&lt;/P&gt;&lt;P&gt;(a) Current month with dimension =Product 1, Product 2, Product 3, Product 4&lt;/P&gt;&lt;P&gt;(b) Previous month with dimension =Product 1, Product 2, Product 3, Product 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a third expression whereby it is populated with the difference between current month and previous month total sales by product as dimension in a new column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Feb 2016 08:31:18 GMT</pubDate>
    <dc:creator>loke2014</dc:creator>
    <dc:date>2016-02-13T08:31:18Z</dc:date>
    <item>
      <title>Create expression when expression 1 is higher than expression 2</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028152#M347315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a straight table with 2 total sales expressions as below:&lt;/P&gt;&lt;P&gt;(a) Current month with dimension =Product 1, Product 2, Product 3, Product 4&lt;/P&gt;&lt;P&gt;(b) Previous month with dimension =Product 1, Product 2, Product 3, Product 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a third expression whereby it is populated with the difference between current month and previous month total sales by product as dimension in a new column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 08:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028152#M347315</guid>
      <dc:creator>loke2014</dc:creator>
      <dc:date>2016-02-13T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression when expression 1 is higher than expression 2</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028153#M347316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Product is your dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just use something like &lt;/P&gt;&lt;P&gt;=Column(1) -Column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or rewriting your original expressions, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Sales) - Sum( &lt;EM&gt;{&amp;lt;PrevMonthSetAnalysis&amp;gt;}&lt;/EM&gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028153#M347316</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-13T16:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression when expression 1 is higher than expression 2</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028154#M347317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-when-expression-1-is-higher-than-expression-2/m-p/1028154#M347317</guid>
      <dc:creator>loke2014</dc:creator>
      <dc:date>2016-02-13T16:30:32Z</dc:date>
    </item>
  </channel>
</rss>

