<?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: Condition for expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition-for-expression/m-p/471264#M485232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in dimension only take those field on which you perform some calculation, and in expression you write the condition on the basis of dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 13:23:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-17T13:23:34Z</dc:date>
    <item>
      <title>Condition for expression</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-for-expression/m-p/471263#M485231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dev people, I´m new to QlikView and I have some problems with expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying is to create a pivot table with 2 dimensions and 2 expressions.I want to show only one expression depending on a flag file(Flag_ist), so I am using the conditional feature for expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1° Problem, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My flag field is correct, but if I can not use it properly in the Condition for the expression because it returns -1 when the value is true (When it is false, returns 0, so OK). I have checked also my flag field with an if statement and it stills return -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2° Problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I change the condition expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1368795955535788" jivemacro_uid="_1368795955535788"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;BR /&gt; //This is not working... I get always sum(sales)&lt;BR /&gt; Condition &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Flag_ist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0,0,1) &lt;BR /&gt; Expression&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(sales)&lt;BR /&gt; &lt;BR /&gt; //This works&lt;BR /&gt; &lt;BR /&gt; Condition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Anything&lt;BR /&gt; Expression&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Flag_ist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values I get from the if are correct, sometimes 0 and sometimes 1. The problem now is that the final expression is always used. I can not hide the expression if I use the condition field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use the second way, but if qlikview has a special field for the condition I would like to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,,&lt;/P&gt;&lt;P&gt;Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-for-expression/m-p/471263#M485231</guid>
      <dc:creator />
      <dc:date>2013-05-17T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Condition for expression</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-for-expression/m-p/471264#M485232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in dimension only take those field on which you perform some calculation, and in expression you write the condition on the basis of dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-for-expression/m-p/471264#M485232</guid>
      <dc:creator />
      <dc:date>2013-05-17T13:23:34Z</dc:date>
    </item>
  </channel>
</rss>

