<?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 Problems with zeros in value for Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460818#M1164375</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;I'm dying for some help with an expression I've written in a chart. The field has mixed values, some are only numbers and others also contain a letter in the beginning. Like this:&lt;/P&gt;&lt;P&gt;500020&lt;/P&gt;&lt;P&gt;D345737&lt;/P&gt;&lt;P&gt;But there is one value that is causing me headaches; D000158. I want to eliminate that value but it simply will not work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if(&lt;SPAN style="color: #800000;"&gt;Orderklantnummer&lt;/SPAN&gt;=('D000158'),&lt;SPAN style="color: #0000ff;"&gt;Null&lt;/SPAN&gt;(), &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the value 500020 or D345737 here it works oke, but as soon as I put the value I need in nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can illuminate me here because I have just been starting to work with QV (11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2012 23:12:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-22T23:12:24Z</dc:date>
    <item>
      <title>Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460818#M1164375</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;I'm dying for some help with an expression I've written in a chart. The field has mixed values, some are only numbers and others also contain a letter in the beginning. Like this:&lt;/P&gt;&lt;P&gt;500020&lt;/P&gt;&lt;P&gt;D345737&lt;/P&gt;&lt;P&gt;But there is one value that is causing me headaches; D000158. I want to eliminate that value but it simply will not work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if(&lt;SPAN style="color: #800000;"&gt;Orderklantnummer&lt;/SPAN&gt;=('D000158'),&lt;SPAN style="color: #0000ff;"&gt;Null&lt;/SPAN&gt;(), &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the value 500020 or D345737 here it works oke, but as soon as I put the value I need in nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can illuminate me here because I have just been starting to work with QV (11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 23:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460818#M1164375</guid>
      <dc:creator />
      <dc:date>2012-11-22T23:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460819#M1164376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try using &lt;SPAN style="color: #800000; font-family: Arial; font-size: 15.555556297302246px; background-color: #ffffff;"&gt;Orderklantnummer&lt;/SPAN&gt; inside the set statement like.....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.555556297302246px; font-family: Arial; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 15.555556297302246px; background-color: #ffffff;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.555556297302246px; font-family: Arial; color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 15.555556297302246px; background-color: #ffffff;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; font-size: 15.555556297302246px; color: #737373; font-family: Arial;"&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.555556297302246px; font-family: Arial; color: #800000;"&gt;Orderklantnummer&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 15.555556297302246px; background-color: #ffffff;"&gt;={"&amp;lt;&amp;gt;D*"}&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.555556297302246px; font-family: Arial; color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.555556297302246px; font-family: Arial; color: #800000;"&gt;this will exclude all &lt;SPAN style="color: #800000; font-family: Arial; font-size: 15.555556297302246px; background-color: #ffffff;"&gt;Orderklantnummer&lt;/SPAN&gt; that have a preceding letter D. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 03:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460819#M1164376</guid>
      <dc:creator />
      <dc:date>2012-11-23T03:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460820#M1164377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that I only want to exclude this number. I tested it with another nr that has a D in front and that worked. So I think the zeros are causing the problem. Thanks for the help, any more suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 07:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460820#M1164377</guid>
      <dc:creator />
      <dc:date>2012-11-23T07:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460821#M1164378</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;Try this expression&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #800000;"&gt;Orderklantnummer-&lt;/SPAN&gt;={'D000158'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 09:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460821#M1164378</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-23T09:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460822#M1164379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if its only one value then you can exclude it as mentioned in the previous mail. That should work just as fine as substituting the exclusion with an alternative like below.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #800000;"&gt;Orderklantnummer&lt;/SPAN&gt;={"&amp;lt;&amp;gt;D000158"}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 16:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460822#M1164379</guid>
      <dc:creator />
      <dc:date>2012-11-23T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460823#M1164380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jasleen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your last suggestion did the trick! Thanks. &lt;/P&gt;&lt;P&gt;The solution that Jagan gave also eliminated some of the values, but left a syntax error in the formula (the red curly line under the formula no?). Thanks for the help too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 21:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460823#M1164380</guid>
      <dc:creator />
      <dc:date>2012-11-23T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460824#M1164381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was too soon with my joy. The solution you gave seems to exlude all possibilities containing a D-Value anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 08:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460824#M1164381</guid>
      <dc:creator />
      <dc:date>2012-11-24T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460825#M1164382</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;This expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #800000;"&gt;Orderklantnummer-&lt;/SPAN&gt;={'D000158'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #800000;"&gt;OrderJaar&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Only(OrderJaar))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Bedrag)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;works as you expected, qlikview shows error for -=, but it works.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Qlikview help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Product += {OurProduct1, OurProduct2} &amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for excluding&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Product -= {OurProduct1, OurProduct2} &amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;returns the sales for the current selection, but using an implicit union to add the products “OurProduct1” and “OurProduct2” to the list of selected products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 09:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460825#M1164382</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-24T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with zeros in value for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460826#M1164383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, this works fine. Thanks for your help.&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;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 21:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-zeros-in-value-for-Expression/m-p/460826#M1164383</guid>
      <dc:creator />
      <dc:date>2012-11-24T21:17:53Z</dc:date>
    </item>
  </channel>
</rss>

