<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65681#M770062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum() is used as logical "or" aggregation of the boolean expression, i.e. if any of the single terms aggregated over your dimension is true, then the if condition will be true thus returning &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(242,28,10).&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;hope this helps&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;regards&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;Marco&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2018 23:30:07 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2018-06-06T23:30:07Z</dc:date>
    <item>
      <title>Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65675#M770056</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;&lt;/P&gt;&lt;P&gt;Can any one let me know the actual logic of below expression:?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why Sum key is used in this logic ? Cant we use in IF statement as sum (TPressure) for every well name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Name of Well = 'BW B8' and (TPressure) &amp;gt; 10) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B1 o.B' and (TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B2 o.B.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B5 o.B.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B4 m.B.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B1 M.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B2 M.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B3 M.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B4 M.' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'TB01' and TPressure &amp;gt; 3) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B1' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'B2' and TPressure &amp;gt; 5) or&lt;/P&gt;&lt;P&gt;(Name of Well = 'STO500' and TPressure &amp;gt; 5)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;, RGB(242,28,10) , RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MANU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65675#M770056</guid>
      <dc:creator>manu1512</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65676#M770057</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;is it working ? just try to remove the Sum() and see if the colors is working properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65676#M770057</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-06T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65677#M770058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This won't give BG color. Reason is you need the condition like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum()= ..., Color1, Color2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If(Sum()&amp;gt; ..., Color1, Color2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If(Sum()&amp;lt; ..., Color1, Color2) ... ETC.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65677#M770058</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-06-06T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65678#M770059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this expression should return color &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(242,28,10)&amp;nbsp; if any of the conditions bellow is true else &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(255,255,255)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in case of removing the sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="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;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65678#M770059</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-06-06T13:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65679#M770060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression returns RGB(242,28,10) if one or more of the conditions in the Sum() are true, else RGB(255,255,255). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the Sum it still returns that RGB(242,28,10) even if multiple values are possible or selected in a field, for example „Name of Well“ has ‘BW B8’ and ‘B1 o.B’ or more selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you remove the Sum and use the ‘If’ only, then for example “Name of Well” has to have exactly one value (e.g. onl ‘BW B8’) to return RGB(242,28,10). If multiple values are possible or selected, then the result will be RGB(255,255,255). &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope my comments helps you to understand the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65679#M770060</guid>
      <dc:creator>andre_mueller</dc:creator>
      <dc:date>2018-06-06T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65680#M770061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its is working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 20:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65680#M770061</guid>
      <dc:creator>manu1512</dc:creator>
      <dc:date>2018-06-06T20:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65681#M770062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum() is used as logical "or" aggregation of the boolean expression, i.e. if any of the single terms aggregated over your dimension is true, then the if condition will be true thus returning &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(242,28,10).&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;hope this helps&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;regards&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;Marco&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 23:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/65681#M770062</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-06-06T23:30:07Z</dc:date>
    </item>
  </channel>
</rss>

