<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression/m-p/499116#M1125687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you're looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 15:23:42 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-01-13T15:23:42Z</dc:date>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499115#M1125686</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;Appreciate any help. We have built the following expression in our script which provides us with a distance in miles from a certain postcode:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ACOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Latitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Lat]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Latitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Lat]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Long]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)-(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Longitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)))*6371 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(km)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ACOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Latitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Lat]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Latitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Lat]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[M27 Long]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)-(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Longitude]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pi&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/180)))*3959 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This works as you can see on the attached (refer to list box 'Distance from M27(miles)). However, as this brings though a long list of distances we would like to merge these into categories (0.01 - 1 miles, 1.01 - 2 miles, 2.01 -3 miles, 3 miles +). Normally a expression like below does the trick; however, as 'Distance from M27miles isnt a field in the data (its a calculated one) doesn't seem to like it- get error when reloading. So I tried building the expression in the list box; however, doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;=IF [Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=1.01 and &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=2,'1-2 miles', &lt;BR /&gt;IF (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=2.01 and &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=3,'2-3 miles',&lt;BR /&gt;IF (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=3.01 and &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=10,'3 miles +')))&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499115#M1125686</guid>
      <dc:creator />
      <dc:date>2014-01-13T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499116#M1125687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you're looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 15:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499116#M1125687</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-13T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499117#M1125688</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;Yes that looks great but can you confirm what you have done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499117#M1125688</guid>
      <dc:creator />
      <dc:date>2014-01-13T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499118#M1125689</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 tried to fix the sorting issue in the field using "Dual()". Perhaps this his helpful for someone. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I would add this line in script as preceding load. (I commented it out because I couldn't test it) Than add a listbox for this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 15:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499118#M1125689</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-01-13T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499119#M1125690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Used an expression for the field on the list box and took the expression off.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 15:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499119#M1125690</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-13T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499120#M1125691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peschu82, Nicole Smith, and anybody else who can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responses. I have added in preceeding load and have the grouped list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably being cheeky but wondering if this grouped box with the different distances could be developed so whichever of the 5 postcodes you pick it works. I know its trivial but if it worked it would save needing 5 boxes. Please refer to atatched and boxes entitled ' grouped ' and post code overall'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I tried extending expression in a list box and preceeding load ins cript but doesnt seem to work. I know this because I have created&amp;nbsp; a box for M28 in addition to one for M27 and they produce different results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=0.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=1,'1 mile or less',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=1.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=2,'1-2 miles', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=2.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=3,'2-3 miles',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=3.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M27(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=10,'3 miles +',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=0.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=1,'1 mile or less',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=1.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=2,'1-2 miles', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=2.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=3,'2-3 miles',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=3.01 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distance from M28(miles)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=10,'3 miles +')))))))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chris &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 08:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499120#M1125691</guid>
      <dc:creator />
      <dc:date>2014-01-14T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499121#M1125692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have question if I understood right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to avoid, that you must create a listbox for every item in "Post Code Over" (m27, m28...)? iN Other words you just want one listbox for the distances like 1-2 Miles and one listbox for the post codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And should it be possible to select multiple post codes at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 10:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499121#M1125692</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-01-14T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499122#M1125693</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;Yes exactly. Apologies..hard to explain sometimes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mulitple postcodes at the same time is a bonus but not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&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, 14 Jan 2014 12:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499122#M1125693</guid>
      <dc:creator />
      <dc:date>2014-01-14T12:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499123#M1125694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF (([Distance from M27(miles)]&amp;gt;=0.01 and [Distance from M27(miles)] &amp;lt;=1) or ([Distance from M28(miles)]&amp;gt;=0.01 and [Distance from M28(miles)]&amp;lt;=1),'1 mile or less',&lt;/P&gt;&lt;P&gt;IF (([Distance from M27(miles)]&amp;gt;=1.01 and [Distance from M27(miles)] &amp;lt;=2) or ([Distance from M28(miles)]&amp;gt;=1.01 and [Distance from M28(miles)] &amp;lt;=2),'1-2 miles', &lt;/P&gt;&lt;P&gt;IF (([Distance from M27(miles)]&amp;gt;=2.01 and [Distance from M27(miles)] &amp;lt;=3) or ([Distance from M28(miles)]&amp;gt;=2.01 and [Distance from M28(miles)]&amp;lt;=3),'2-3 miles',&lt;/P&gt;&lt;P&gt;IF (([Distance from M27(miles)]&amp;gt;=3.01 and [Distance from M27(miles)] &amp;lt;=10) or ([Distance from M28(miles)]&amp;gt;=3.01 and [Distance from M28(miles)] &amp;lt;=10),'3 miles +'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 14:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499123#M1125694</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-14T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/499124#M1125695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to add 2 variables:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; to get the selected postcode: vPostcode = GetFieldSelections([Post Code overall])&lt;/P&gt;&lt;P&gt;2. vDistance = '[Distance from '&amp;amp; '$(vPostcode)' &amp;amp; '(miles)]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I tried to replace the IF expression in the Listbox with: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(vDistance) &amp;gt;= 0.01 and $(vDistance) &amp;lt;= 1,'1 mile or less',&lt;/P&gt;&lt;P&gt; IF($(vDistance) &amp;gt;= 1.01 and $(vDistance) &amp;lt;= 2,'1-2 miles', &lt;/P&gt;&lt;P&gt; IF($(vDistance) &amp;gt;= 2.01 and $(vDistance) &amp;lt;= 3,'2-3 miles',&lt;/P&gt;&lt;P&gt; IF($(vDistance) &amp;gt;= 3.01 and $(vDistance) &amp;lt;=10,'3 miles +'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behavior is a bit strange... but perhaps you can play around with it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 14:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/499124#M1125695</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-01-14T14:05:48Z</dc:date>
    </item>
  </channel>
</rss>

