<?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 Issue with IF in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376883#M458846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a waterfall chart where values which are positive are green and values which are negative are red.&lt;/P&gt;&lt;P&gt;This works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue becomes more complex when i try to add the condition for the Total Column (in yellow). &lt;/P&gt;&lt;P&gt;The requirement is to have the Total coluum in another colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Dimensionality() =0 to identify the total column. This works outside of the IF statement.&lt;/P&gt;&lt;P&gt;However when I add this to the exisiting condition nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I not seeing something obvious?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression for the background colour and the current graph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(column(1)&amp;gt;0, Green(),&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0, Black(),Red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bonus equestion how do I identify the others colum in a table where the others is a result of a limited dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May thanks in advance!&lt;/P&gt;&lt;P&gt;Paul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2017 09:53:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-27T09:53:59Z</dc:date>
    <item>
      <title>Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376883#M458846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a waterfall chart where values which are positive are green and values which are negative are red.&lt;/P&gt;&lt;P&gt;This works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue becomes more complex when i try to add the condition for the Total Column (in yellow). &lt;/P&gt;&lt;P&gt;The requirement is to have the Total coluum in another colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Dimensionality() =0 to identify the total column. This works outside of the IF statement.&lt;/P&gt;&lt;P&gt;However when I add this to the exisiting condition nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I not seeing something obvious?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression for the background colour and the current graph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(column(1)&amp;gt;0, Green(),&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0, Black(),Red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bonus equestion how do I identify the others colum in a table where the others is a result of a limited dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May thanks in advance!&lt;/P&gt;&lt;P&gt;Paul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 09:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376883#M458846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T09:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376884#M458847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like I'm missing something here, so I'll just ask: in your condition, if Column(1)&amp;gt;0, the result is always Green(). Your total is &amp;gt;0. Why shouldn't it be green?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376884#M458847</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-27T10:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376885#M458848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or firstly thanks for your answer. It's much appreciated. I understand what you are saying.&lt;/P&gt;&lt;P&gt;The dimensionality of the Total colum is 0 so I was hoping that the Dimensionality()=0 would set the Black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that my logic is wrong. Have you any idea how to go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376885#M458848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T10:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376886#M458849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is achievable. I don't have application handy.&lt;SPAN style="font-size: 13.3333px;"&gt;Can you please post your demo application?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376886#M458849</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-11-27T10:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376887#M458850</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;Use below expression.&lt;/P&gt;&lt;P&gt;if(RowNo()=1 or Dimensionality()=0,0,RangeSum(Above(sum(Value),1,RowNo())))&lt;/P&gt;&lt;P&gt;Background Color:- if(Dimensionality()=0,Yellow(),if(Column(1)&amp;gt;0,Green(),Red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attached application for reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 11:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376887#M458850</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-11-27T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IF in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376888#M458851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!! This work. I should have played with my statement more. Thanks again for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 12:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-IF-in-an-expression/m-p/1376888#M458851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T12:58:17Z</dc:date>
    </item>
  </channel>
</rss>

