<?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: Showing Expression based on multiple dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691412#M1066313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Jonthan said is true... but if you want to have Expression Total in Straight Table, use below little corrected expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(Year1 &amp;gt; Year2, Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as we have used if condition at Expression level, there is no NULL value would come....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider that we have below table at script.....Don't think much about the table..... it's for sample purpose only...&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer, Year1, Year2, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, 2011, 2012, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; B, 2010, 2008, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 2014, 2014, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 2014, 2013, 220&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM(IF(Year1 &amp;gt; Year2, Sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Another Way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=IF(Year1 &amp;gt; Year2, Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Here we are going to get NULL for few Customers wherever the IF condition don't match... so you need to tick Suppress When Value is NULL in Dimension Tab...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Sep 2014 07:58:35 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-09-13T07:58:35Z</dc:date>
    <item>
      <title>Showing Expression based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691410#M1066310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart with two dimensions Year1 and Year2, and I want to only show data points that fits certain criteria - like if Year1 &amp;gt; Year2 then show otherwise don't show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 00:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691410#M1066310</guid>
      <dc:creator />
      <dc:date>2014-09-13T00:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Expression based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691411#M1066312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what you can do is enter the condition on each expression in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp; Year 1 &amp;gt; Year 2 , sum(Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't specify an 'else' condition it evaluates to NULL. If all the expressions evaluate to NULL the row is suppressed&amp;nbsp; by default (presentation tab -&amp;gt; suppress missing)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 00:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691411#M1066312</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-13T00:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Expression based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691412#M1066313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Jonthan said is true... but if you want to have Expression Total in Straight Table, use below little corrected expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(Year1 &amp;gt; Year2, Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as we have used if condition at Expression level, there is no NULL value would come....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider that we have below table at script.....Don't think much about the table..... it's for sample purpose only...&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer, Year1, Year2, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, 2011, 2012, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; B, 2010, 2008, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 2014, 2014, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 2014, 2013, 220&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM(IF(Year1 &amp;gt; Year2, Sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Another Way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=IF(Year1 &amp;gt; Year2, Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Here we are going to get NULL for few Customers wherever the IF condition don't match... so you need to tick Suppress When Value is NULL in Dimension Tab...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 07:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Expression-based-on-multiple-dimensions/m-p/691412#M1066313</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-13T07:58:35Z</dc:date>
    </item>
  </channel>
</rss>

