<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-expression/m-p/959780#M329493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Syntax is not correct&lt;/P&gt;&lt;P&gt;IF( only(Status) = 'Yes',sum( {&amp;lt;Status = {'Yes'}&amp;gt;} 1),&amp;nbsp; sum({&amp;lt;Status={'No'}&amp;gt;} 1))&lt;/P&gt;&lt;P&gt;can you explain more what you want to achieve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 15:48:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-26T15:48:41Z</dc:date>
    <item>
      <title>set expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression/m-p/959779#M329492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help me to construct the below set analysis expression-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( only(Status) = 'Yes',sum( {&amp;lt;Status = 'Yes'&amp;gt;} 1),&amp;nbsp; sum({&amp;lt;Status='No'&amp;gt;} 1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 03:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression/m-p/959779#M329492</guid>
      <dc:creator />
      <dc:date>2015-10-26T03:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: set expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression/m-p/959780#M329493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Syntax is not correct&lt;/P&gt;&lt;P&gt;IF( only(Status) = 'Yes',sum( {&amp;lt;Status = {'Yes'}&amp;gt;} 1),&amp;nbsp; sum({&amp;lt;Status={'No'}&amp;gt;} 1))&lt;/P&gt;&lt;P&gt;can you explain more what you want to achieve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression/m-p/959780#M329493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-26T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: set expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression/m-p/959781#M329494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure your requirement is, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Status = 'Yes', Count(TOTAL {&amp;lt;Status = {'Yes'}&amp;gt;} Status), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(TOTAL {&amp;lt;Status = {'No'}&amp;gt;} Status))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression/m-p/959781#M329494</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-26T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: set expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression/m-p/959782#M329495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the syntax nedds the value between {}:&lt;/P&gt;&lt;P&gt;IF( only(Status) = 'Yes',sum({&amp;lt;Status=&lt;STRONG&gt;{&lt;/STRONG&gt;'Yes'&lt;STRONG&gt;}&lt;/STRONG&gt;&amp;gt;} 1),&amp;nbsp; sum({&amp;lt;Status=&lt;STRONG&gt;{&lt;/STRONG&gt;'No'&lt;STRONG&gt;}&lt;/STRONG&gt;&amp;gt;} 1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's for avoid the syntax error, but about the logic:&lt;/P&gt;&lt;P&gt;IF( only(Status)= 'Yes' // This check on the current dimension, if all values are 'Yes' it will return "true", for any other cases (all 'No' or a mix of values) it will returns "false"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if your chart has a dimension with yes and no values it will go to the else and count the 'No'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an Status dimension in the chart you only need an expression like: Sum(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression/m-p/959782#M329495</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-26T15:54:09Z</dc:date>
    </item>
  </channel>
</rss>

