<?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: Straight Table issue: Problem in null values in the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301721#M111679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying John. So, in the Variable vExpr5, should I write the actual expression(Expr5) and then use that variable in all the expressions or dimensions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like vExpr5= if(Expr1='True' and Expr2='True' and Expr3=True') something like that. Is that what you meant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 19:03:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-08T19:03:17Z</dc:date>
    <item>
      <title>Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301717#M111675</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;I have a striaght table with 2 dimensions..and have 6 expressions. My requirement is to show only Non-Null values for one of my expression...but even when I go to presentation tab, and Suppress null values for that expression, it still shows the values and there is no change in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have expreinced a similar problem? Any solutions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301717#M111675</guid>
      <dc:creator />
      <dc:date>2011-11-07T20:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301718#M111676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you suppress nulls, it will still show the row if ANY of your expressions is non-null.&amp;nbsp; Are you trying to suppress the entire row if the first expression is null, even if there are values in the other expressions?&amp;nbsp; You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Sales&amp;nbsp;&amp;nbsp; = sum(Sales)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Revenue = if(Sales,sum(Revenue))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Cost&amp;nbsp;&amp;nbsp;&amp;nbsp; = if(Sales,sum(Cost))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Profit&amp;nbsp; = if(Sales,Revenue - Cost)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way would be to use a calculated dimension.&amp;nbsp; Let's say your dimension is customer.&amp;nbsp; You could instead do this, I believe, and then suppress nulls for the dimension instead of the expression.&amp;nbsp; That keeps your expressions simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension = aggr(if(sum(Sales),Customer),Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 23:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301718#M111676</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-07T23:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301719#M111677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;thanks for replying. I am using expressions like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr1: Calcualting something on dimesnion&lt;/P&gt;&lt;P&gt;Expr2: calculations + conditions like if Expr1= 'ABC'&lt;/P&gt;&lt;P&gt;Expr3: using Expr1 and Expr 2&lt;/P&gt;&lt;P&gt;Expr4: using Expr1,2,3,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my requirement is to show only those rows in my straight table where the Expr4 does not contain any Null nodes. Basically, removing the entire row, if Expr4 is NULL, irrespctive of the values of Expr 1 , Expr2 or Expr3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expr5 looks like: &lt;/P&gt;&lt;P&gt;=if(Expr1='True' AND Expr2='True' AND Expr3='True' AND Expr5='True','True')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i want only that rows where the value of this expr5 is not null. I can't create a list and then select, because its an expression.&lt;/P&gt;&lt;P&gt;Thanks. Please let me know, if you want me to be more specific.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 00:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301719#M111677</guid>
      <dc:creator />
      <dc:date>2011-11-08T00:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301720#M111678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the if() for your other expressions, you'd need to expand the expression for Expr5, not just write it using the other expressions.&amp;nbsp; Since an expanded expression for Expr5 would be complicated, I'd probably write it as a variable.&amp;nbsp; Then use that variable when deciding whether or not to calculate the other expressions.&amp;nbsp; Something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expr1: if($(vExpr5)='True',calculate something on dimension)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expr2: if($(vExpr5)='True',calculations + conditions like if Expr1='ABC')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expr3: if($(vExpr5)='True',using Expr1 and Expr2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expr4: if($(vExpr5)='True',using Expr1 2 3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expr5: $(vExpr5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension approach would probably be similar.&amp;nbsp; With three dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim1: aggr(if($(vExpr5)='True',Dim1),Dim1,Dim2,Dim3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim2: aggr(if($(vExpr5)='True',Dim2),Dim1,Dim2,Dim3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim3: aggr(if($(vExpr5)='True',Dim3),Dim1,Dim2,Dim3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very untested and could be wrong.&amp;nbsp; Think of it more as the first thing I'd try testing if this were my own application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 17:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301720#M111678</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-08T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301721#M111679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying John. So, in the Variable vExpr5, should I write the actual expression(Expr5) and then use that variable in all the expressions or dimensions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like vExpr5= if(Expr1='True' and Expr2='True' and Expr3=True') something like that. Is that what you meant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 19:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301721#M111679</guid>
      <dc:creator />
      <dc:date>2011-11-08T19:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301722#M111680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes and no.&amp;nbsp; You need to fully-expand all of the expressions or you hit a logical loop.&amp;nbsp; Let's take a simple example.&amp;nbsp; Let's say you currently have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp1: if(sum(Sales)&amp;gt;500,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp2: if(Exp1='True' or sum(Cost)&amp;lt;400,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp3: if(sum({&amp;lt;Product={'Apple'}&amp;gt;} Cost)&amp;gt;500,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp4: if(Exp1='True' and Exp2='True' and Exp3='True','True')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you only want to show any of these expressions if Exp4 is 'True'.&amp;nbsp; So we create a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp4 = if(Exp1='True' and Exp2='True' and Exp3='True','True')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we reference it in the other expressions, such as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp1: if($(vExpr)='True',if(sum(Sales)&amp;gt;500,'True','False'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView will do dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp1: if(if(Exp1='True' and Exp2='True' and Exp3='True','True')='True',if(sum(Sales)&amp;gt;500,'True','False'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now the expression for Exp1 depends on the result from Exp1.&amp;nbsp; We can't calculate it before we calculate it, so this is an impossible situation.&amp;nbsp; So we instead need to fully-expand the expressions inside the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp4 = if(if(sum(Sales)&amp;gt;500,'True','False')='True' and if(if(sum(Sales)&amp;gt;500,'True','False')='True' or sum(Cost)&amp;lt;400,'True','False')='True' and if(sum({&amp;lt;Product={'Apple'}&amp;gt;} Cost)&amp;gt;500,'True','False')='True','True')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be simplified to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp4 = if(sum(Sales)&amp;gt;500 and sum({&amp;lt;Product={'Apple'}&amp;gt;} Cost)&amp;gt;500,'True')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you use it in the expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp1: if($(vExp4)='True',if(sum(Sales)&amp;gt;500,'True','False'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp2: if($(vExp4)='True',if(Exp1='True' or sum(Cost)&amp;lt;400,'True','False'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp3: if($(vExp4)='True',if(sum({&amp;lt;Product={'Apple'}&amp;gt;} Cost)&amp;gt;500,'True','False'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp4: $(vExp4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you might use variables for the other expressions if you think it would be easier to maintain.&amp;nbsp; That basically automates the full expansion, but isn't clever enough to simplify&amp;nbsp; once fully-expanded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp1: if(sum(Sales)&amp;gt;500,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp2: if($(vExp1)='True' or sum(Cost)&amp;lt;400,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp3: if(sum({&amp;lt;Product={'Apple'}&amp;gt;} Cost)&amp;gt;500,'True','False')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vExp4: if($(vExp1)='True' and $(vExp2)='True' and $(vExp3)='True','True')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp1: if($(vExp4)='True',$(vExp1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp2: if($(vExp4)='True',$(vExp2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp3: if($(vExp4)='True',$(vExp3))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Exp4: $(vExp4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I may well have some things incorrect.&amp;nbsp; If so, hopefully at least the basic idea of what I'm proposing is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sure would be nice if all that wasn't necessary, though, and could be handled with a simple checkmark.&amp;nbsp; Maybe I'm missing something easier.&amp;nbsp; Anyone else have any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 19:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301722#M111680</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-08T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301723#M111681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright John, I'm gonna try the above solution and see if it works. Thanks a lot. Any other suggestions would be appreciated. &lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 23:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301723#M111681</guid>
      <dc:creator />
      <dc:date>2011-11-08T23:37:53Z</dc:date>
    </item>
    <item>
      <title>Straight Table issue: Problem in null values in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301724#M111682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've similar requirement...when the user enters a value for&amp;nbsp; a particular expression in input box then in the straight table only those values shud appear for that expression wich are greater than the value entered &amp;amp; other rows shud become hidden, the problem in applying the above solution is that i've 5 expressions and 8 dimensions to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 20:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-issue-Problem-in-null-values-in-the-expression/m-p/301724#M111682</guid>
      <dc:creator />
      <dc:date>2012-03-11T20:21:47Z</dc:date>
    </item>
  </channel>
</rss>

