<?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: Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000545#M966675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Priya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I Think its Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;if(isnull(bs_type),'ASS',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type&lt;/SPAN&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident ......;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;UI:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type &lt;/SPAN&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;= {'OFB'}&amp;gt;}&lt;/SPAN&gt;outstanding) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 16:28:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-05T16:28:38Z</dc:date>
    <item>
      <title>Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000539#M966669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the expression in QV for below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(outstanding) where nvl(bs_type, 'ASS') != 'OFB'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000539#M966669</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2015-10-05T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000540#M966670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does this come from? Meaning what DB uses expressions like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000540#M966670</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-05T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000541#M966671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use Resident Load with Desc order of certain field and use Peek or Previous in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000541#M966671</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-05T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000542#M966672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use null handling function in the script as below and use set analysis in your expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullAsValue bs_type;&lt;/P&gt;&lt;P&gt;Set NullValue = 'ASS';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression : =Sum({&amp;lt;bs_type-={'OFB'}&amp;gt;}outstanding)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000542#M966672</guid>
      <dc:creator>malini_qlikview</dc:creator>
      <dc:date>2015-10-05T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000543#M966673</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;It's not totally clear to me the meaning of your expression. What is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;nvl(bs_type, 'ASS') ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, if an if statement does not fulfill your needs, I would suggest a look on Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;João Duarte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000543#M966673</guid>
      <dc:creator>jduarte12</dc:creator>
      <dc:date>2015-10-05T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000544#M966674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to make a chart with Set Analysis, you could use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;bs_type -= {'OFB'}&amp;gt;} outstanding)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but this does not do exactly what you want: You will have a difference when bs_type is NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;To fix this you need to r&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;emove NULLs in the script: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(bs_type),'ASS',bs_type) as bs_type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use advanced set analysis on the primary key in the table:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;key = E({$&amp;lt;bs_type={'OFB'}&amp;gt;} key)&amp;gt;} outstanding)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In other words: Find the values of key that get excluded at a selection of 'OFB' and use these as aggregation scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000544#M966674</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-05T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000545#M966675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Priya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I Think its Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;if(isnull(bs_type),'ASS',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type&lt;/SPAN&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident ......;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;UI:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bs_type &lt;/SPAN&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;= {'OFB'}&amp;gt;}&lt;/SPAN&gt;outstanding) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000545#M966675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-05T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000546#M966676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to write expression in Chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000546#M966676</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2015-10-05T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000547#M966677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it. The answer is: it depends. If you want to use comparable code in QV script, you can use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum(if (bs_type &amp;lt;&amp;gt; 'OFB', outstanding)) AS ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In many cases, NULL values don't need any special treatment in QlikView.&lt;/P&gt;&lt;P&gt;But this may not be of much use as the context will dictate a correct analogy. Can you elaborate about this a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000547#M966677</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-05T16:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1000548#M966678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=Sum(if (bs_type &amp;lt;&amp;gt; 'OFB', outstanding))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again, alternatives like set analysis may provide a better fit (and better performance)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1000548#M966678</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-05T16:30:58Z</dc:date>
    </item>
  </channel>
</rss>

