<?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: Error with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993828#M962932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have 2 Neighbourhoods under the same address in your sample data - is that correct?&lt;BR /&gt; Button does selection on current selection ($) so result is different when you make selection for "Moss Vale".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 16:15:50 GMT</pubDate>
    <dc:creator>karolina_</dc:creator>
    <dc:date>2015-10-16T16:15:50Z</dc:date>
    <item>
      <title>Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993822#M962926</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;A solution was kindly provided to us via the community which when selected just brough through a certain amount of properties meeting the following criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is on a serach string on a button entitled red properties. The criteria for red is any property with a value less than 4999:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NPV Total]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;-£4999"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Address&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '"' &amp;amp; '|' &amp;amp; '"') &amp;amp; '"' &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It worked to date but now with new data its showing one property as green when the button is selected. Please see attachment on what happens and then how its resolved - but we shouldnt have to additional bits to resolve.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 07:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993822#M962926</guid>
      <dc:creator />
      <dc:date>2015-10-16T07:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993823#M962927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a sample qvw, the case could have been investigated with a little more ease. Could you share one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 08:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993823#M962927</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-16T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993824#M962928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afraid I can't as it will have senstive information in. Otherwise I would.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 08:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993824#M962928</guid>
      <dc:creator />
      <dc:date>2015-10-16T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993825#M962929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps: &lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 08:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993825#M962929</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-16T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993826#M962930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have scrambled some of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I then remove the app from this post after its answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 08:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993826#M962930</guid>
      <dc:creator />
      <dc:date>2015-10-16T08:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993827#M962931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 09:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993827#M962931</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-16T09:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993828#M962932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have 2 Neighbourhoods under the same address in your sample data - is that correct?&lt;BR /&gt; Button does selection on current selection ($) so result is different when you make selection for "Moss Vale".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 16:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993828#M962932</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2015-10-16T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993829#M962933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karolina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes we have the same street in 2 of our areas. Falcon Drive is in Mountksip and then there is another Falcon Drive in Moss Vale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 16:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993829#M962933</guid>
      <dc:creator />
      <dc:date>2015-10-16T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993830#M962934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you need AND on two diffrent fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you compare simple [NPV Total] maybe u can add flag in load script and count flags and use them in set analysis in app?&lt;/P&gt;&lt;P&gt;if([NPV Total]&amp;lt;=-5000,-1,if([NPV Total]&amp;gt;=5000,1,0)) AS Flag&lt;/P&gt;&lt;P&gt;Button would then select -1 in field Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or add variables vRed, vAmber, vGreen - in the button set vRed=1 and others as 0 and multiple your expressions:&lt;BR /&gt;=Count( {&amp;lt;[NPV Total]={"&amp;lt;-5000"}&amp;gt;} [Address])*vRed&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[NPV Total]={"&amp;gt;=-4999&amp;lt;=4999"}&amp;gt;} [Address])*vAmber&lt;/P&gt;&lt;P&gt;=Count( {&amp;lt;[NPV Total]={"&amp;gt;=5000"}&amp;gt;} [Address])*vGreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 17:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993830#M962934</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2015-10-16T17:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993831#M962935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karolina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right.That make sense but not sure how to do this. How do we get the vRed, vAmber etc to work? Just copying and pasting your expression comes up with an error in the script saying vRed is a bad field name. Do we need to add something to the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is really silly question..still learning!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993831#M962935</guid>
      <dc:creator />
      <dc:date>2015-10-20T11:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993832#M962936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Flag would be much better &amp;amp; quicker &amp;amp; nicer,&lt;/STRONG&gt; but with variables it can be like in attached app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993832#M962936</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2015-10-20T11:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993833#M962937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris, I used this expression in 'RED NPV' button action:&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp; '(' &amp;amp; '"' &amp;amp; concat({$ &amp;lt;Address={"=Avg([NPV Total])&amp;lt;-4999"}&amp;gt;} Address, '"' &amp;amp; '|' &amp;amp; '"') &amp;amp; '"' &amp;amp; ')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993833#M962937</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-20T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993834#M962938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak very much Karolina. Have both options now to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993834#M962938</guid>
      <dc:creator />
      <dc:date>2015-10-20T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993835#M962939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would that work on different set of data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it's giving now 135 reds in stead of 136&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993835#M962939</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2015-10-20T11:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993836#M962940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, that's because the address '3 Ciztxx Zfbkm' is in Moss Vale and Mountskip, so filtering only by address will lead to this kind of unexpected results, filters should apply to a key that combines neigbourhood and address to avoid this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 12:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993836#M962940</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-20T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993837#M962941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe changing the action field from Address to UPRN and use this expression:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=&lt;/TD&gt;&lt;TD&gt;'(' &amp;amp; '"' &amp;amp; concat({$ &amp;lt;UPRN={"=Avg([NPV Total])&amp;lt;-4999"}&amp;gt;} UPRN, '"' &amp;amp; '|' &amp;amp; '"') &amp;amp; '"' &amp;amp; ')'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 12:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-expression/m-p/993837#M962941</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-20T12:55:34Z</dc:date>
    </item>
  </channel>
</rss>

