<?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 if condition in the set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028206#M936126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;Here is my case:&lt;/P&gt;&lt;P&gt;i have a chart i am using the if condition but the problem is the chart calculation only take into consideration only the else expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;case 1 :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(&lt;/SPAN&gt;condition&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,expression 1,&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 2&lt;/STRONG&gt;&lt;/SPAN&gt;) it take &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 2 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;case 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;condition&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,expression 2,&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 1&lt;/STRONG&gt;&lt;/SPAN&gt;) it take &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;can anyone help?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;Thank you.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Feb 2016 16:38:14 GMT</pubDate>
    <dc:creator>mario-sarkis</dc:creator>
    <dc:date>2016-02-13T16:38:14Z</dc:date>
    <item>
      <title>if condition in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028206#M936126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;Here is my case:&lt;/P&gt;&lt;P&gt;i have a chart i am using the if condition but the problem is the chart calculation only take into consideration only the else expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;case 1 :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(&lt;/SPAN&gt;condition&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,expression 1,&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 2&lt;/STRONG&gt;&lt;/SPAN&gt;) it take &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 2 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;case 2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;condition&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,expression 2,&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 1&lt;/STRONG&gt;&lt;/SPAN&gt;) it take &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;expression 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;can anyone help?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;Thank you.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028206#M936126</guid>
      <dc:creator>mario-sarkis</dc:creator>
      <dc:date>2016-02-13T16:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: if condition in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028207#M936127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can your condition be unambiguously evaluated in the scope you are using it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you test on field values, is the field value unique in this scope?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A common mistake is something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( Customer = 'Stefan', Expression1, Expression2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a table chart, but without using Customer as dimension. So 'Customer' is not unique in the context it's evaluated (assuming you have more than 1 customer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028207#M936127</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-13T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: if condition in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028208#M936128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to comment before looking at it. Is it possible to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-in-the-set-analysis/m-p/1028208#M936128</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-13T16:55:48Z</dc:date>
    </item>
  </channel>
</rss>

