<?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: Set analysis syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577571#M214808</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;In your first if you are evaluating &lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1))&amp;nbsp; &amp;gt; 1000 if this false then&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;lt; 1000&amp;nbsp; // This condition automatically true so dont include this&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;gt; 500&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1))&amp;nbsp; &amp;gt; 1000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png',&lt;/P&gt;&lt;P&gt;if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;gt; 500,&lt;/P&gt;&lt;P&gt; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;PS&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Mar 2014 16:18:31 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-03-30T16:18:31Z</dc:date>
    <item>
      <title>Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577566#M214803</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 have the following e&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xpression however it does not seem to be working correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1))&amp;nbsp; &amp;gt; 1000&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;,if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;lt; 1000 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;and Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;gt; 500, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should recieve the led_o colour in this example as i know the Sales where 637 however it shows as green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i can solve this with a simple if however i would like to force this result to be shown even if the country is not selected, ie. Germany(DE) in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 20:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577566#M214803</guid>
      <dc:creator />
      <dc:date>2014-03-29T20:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577567#M214804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's hard to answer without knowing your data, model etc. It's often easier if you can post a small sample application that demonstrates the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your syntax seems correct on first glance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which context are you using this expression and how have you checked the actual value of Sales (637)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 00:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577567#M214804</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-03-30T00:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577568#M214805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide sample data in excel and please be sure these fields are present that you are using in the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 03:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577568#M214805</guid>
      <dc:creator>arsal_90</dc:creator>
      <dc:date>2014-03-30T03:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577569#M214806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have attached a sample now.&lt;/P&gt;&lt;P&gt;any help is greatly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 06:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577569#M214806</guid>
      <dc:creator />
      <dc:date>2014-03-30T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577570#M214807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bradley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be good if you can point us to the issue using the attached document, I don't really like to guess around&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are referring to the text box in the map, saying 2711,18036, as a reference value, you are using as expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1) /1000)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression used for the bullet point near by, you are using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1) /1000)&amp;nbsp; &amp;gt; 1000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1) / 1000) &amp;lt; 1000 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1) /1000) &amp;gt; 500, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="comm112488.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56195_comm112488.png" style="width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that I see a different value than you posted in your original post (637), and that the value I see &lt;EM&gt;should&lt;/EM&gt; return a green icon, there is an important difference between the two calculations, the set identifier. &lt;/P&gt;&lt;P&gt;In your image expression, you are using a set identifier 1, ignoring all your user made selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1) /1000) &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 11:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577570#M214807</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-03-30T11:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577571#M214808</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;In your first if you are evaluating &lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1))&amp;nbsp; &amp;gt; 1000 if this false then&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;lt; 1000&amp;nbsp; // This condition automatically true so dont include this&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;gt; 500&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1))&amp;nbsp; &amp;gt; 1000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png',&lt;/P&gt;&lt;P&gt;if(Sum({1&amp;lt;Kund.Landkod={'DE'}&amp;gt;}$(vNettoFsg1)) &amp;gt; 500,&lt;/P&gt;&lt;P&gt; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;PS&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 16:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/577571#M214808</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-30T16:18:31Z</dc:date>
    </item>
  </channel>
</rss>

