<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062378#M355486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I am using this expression in a bar chart.&lt;/P&gt;&lt;P&gt;Desc is part of my Drill Down group which is one of the dimensions I am using for this chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 21:13:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-19T21:13:26Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062376#M355484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing this set analysis formula. The issue is when I am selecting individual records in field "Desc" the expression works fine that is if in list box of Desc I select A then expression result is perfect and also for other different selections but when I select two values of Desc which are in or that when I select Desc value "A" and "B" the expression is not evaluating as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any basic mistake I am doing here as far as set analysis is concerned ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in this regard is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Desc='A' or Desc='B',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present) = 0,0,sum({$&amp;lt;ID = {'Q3'},ZeroFlag = {'N'}&amp;gt;} Resp) / sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present))&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(Desc='C' or Desc='D',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q6'}&amp;gt;}Present) = 0,0,sum({$&amp;lt;ID = {'Q6'},ZeroFlag = {'N'}&amp;gt;} Resp) / sum({$&amp;lt;ID = {'Q6'}&amp;gt;}Present))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present) = 0,0,(sum({$&amp;lt;ID = {'Q6'},Desc = {'C' ,'D'},ZeroFlag = {'N'}&amp;gt;} Resp) + sum({$&amp;lt;ID = {'Q3'},Desc = {'A','B'},ZeroFlag = {'N'}&amp;gt;} Resp)) &lt;/P&gt;&lt;P&gt;&amp;nbsp; / (sum({$&amp;lt;ID = {'Q6'},Desc = {'C' ,'D'}&amp;gt;}Present)+ sum({$&amp;lt;ID = {'Q3'},Desc = {'A','B'}&amp;gt;}Present)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062376#M355484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T20:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062377#M355485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing this is an expression in a chart? If Desc is not a dimension of that chart, then selecting two values for Desc makes Desc evaluate to null. Null doesn't match any of your conditions, so you might end up in the third "if" when you don't expect to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing is jumping out at me about the set analysis, but it's a long expression, and may not be where your problem lies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062377#M355485</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-19T21:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062378#M355486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I am using this expression in a bar chart.&lt;/P&gt;&lt;P&gt;Desc is part of my Drill Down group which is one of the dimensions I am using for this chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062378#M355486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T21:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062379#M355487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe a bit more detailed how the result deviates from your expectation (i.e. what do you expect to see and what do you see) when you perform the different selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be feasible that you also upload a small sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or a rough description of your data model? Some screenshots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062379#M355487</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-19T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062380#M355488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't be entirely sure, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(Desc='A' or Desc='B',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present) = 0,0,sum({$&amp;lt;ID = {'Q3'},ZeroFlag = {'N'}&amp;gt;} Resp) / sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(Desc='C' or Desc='D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q6'}&amp;gt;}Present) = 0,0,sum({$&amp;lt;ID = {'Q6'},ZeroFlag = {'N'}&amp;gt;} Resp) / sum({$&amp;lt;ID = {'Q6'}&amp;gt;}Present))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; if(sum({$&amp;lt;ID = {'Q3'}&amp;gt;}Present) = 0,0, &lt;SPAN style="color: #ff0000;"&gt;RangeSum&lt;/SPAN&gt;(sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt;{$&amp;lt;ID = {'Q6'},Desc = {'C' ,'D'},ZeroFlag = {'N'}&amp;gt;} Resp)&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt; sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTAL&lt;/STRONG&gt;{$&amp;lt;ID = {'Q3'},Desc = {'A','B'},ZeroFlag = {'N'}&amp;gt;} Resp))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; / &lt;SPAN style="color: #ff0000;"&gt;RangeSum&lt;/SPAN&gt;(sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTAL&lt;/STRONG&gt;{$&amp;lt;ID = {'Q6'},Desc = {'C' ,'D'}&amp;gt;}Present)&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt; sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTAL&lt;/STRONG&gt;{$&amp;lt;ID = {'Q3'},Desc = {'A','B'}&amp;gt;}Present)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 23:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062380#M355488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-19T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062381#M355489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the expression you suggested but the result is same.&lt;/P&gt;&lt;P&gt;I will create a mock up qwv and post here so that you can help me with your expertise on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062381#M355489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062382#M355490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Swuehl,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I will create a mock up qwv and post here so that you can help me with your expertise on that.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for your time.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1062382#M355490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T20:12:46Z</dc:date>
    </item>
  </channel>
</rss>

