<?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 with mutliple conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968867#M976294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem appears to be the in the relationship &lt;SPAN style="font-size: 13.3333px;"&gt;the service level group and the table itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need some more information about the pivot table (dimensions) and your data model structure (how is the service level group associated with the chart dimensions/expressions). it would also be useful to know what result you are getting and the result you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, the best is to post your qvw or a representative sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 05:49:25 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-09-04T05:49:25Z</dc:date>
    <item>
      <title>Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968863#M976286</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 am struggling to get the following set analysis to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am trying to get the Sum(QuantityYTD) for Clients with Revenue Current Year &amp;gt;0 and Revenue Past Year =0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;[CIB Parent Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;"=sum(AmountYTD)&amp;gt;0 and sum(AmountPYTD)=0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt; }&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;QuantityYTD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;In my QV model I have&amp;nbsp; pivot chart with Service Level Group dimension and the above expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;The pivot chart displays incorrect values when no Service Level Group is selected. As soon as I select 1 Service Level Group value, the expression returns corrrect results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Pulling my hair out. Your help/direction is much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: black;"&gt;R&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 15:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968863#M976286</guid>
      <dc:creator />
      <dc:date>2015-09-03T15:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968864#M976288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its wrong to use a condition &lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;like this -&amp;gt;sum(AmountYTD)&amp;gt;0 and sum(AmountPYTD)=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;try an if condition instead of set analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;if(sum(AmountYTD)&amp;gt;0 and sum(AmountPYTD)=0,sum(&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;QuantityYTD),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 19:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968864#M976288</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-03T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968865#M976290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that approach wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Service Level Group dimension, I need to get only "New Business Volume" generated by Clients based on the rule I a described above. (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Clients with Revenue Current Year &amp;gt;0 and Revenue Past Year =0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were to apply what you suggested, I will get 0 for all Service Level Group values as AmountPYTD is always &amp;gt;0 at&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Service Level Group. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use SET ANALYSIS to get New Business Volume for a given Service Level Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your input thou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 05:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968865#M976290</guid>
      <dc:creator />
      <dc:date>2015-09-04T05:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968866#M976292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;=Sum(If(Sum(AmountYTD) &amp;gt; 0 and Sum(AmountPYTD) = 0, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;QuantityYTD))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 05:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968866#M976292</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-04T05:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968867#M976294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem appears to be the in the relationship &lt;SPAN style="font-size: 13.3333px;"&gt;the service level group and the table itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need some more information about the pivot table (dimensions) and your data model structure (how is the service level group associated with the chart dimensions/expressions). it would also be useful to know what result you are getting and the result you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, the best is to post your qvw or a representative sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 05:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968867#M976294</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-04T05:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968868#M976296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonanthan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below pictures shows a pivot chart (no rules or conditions or selections applied), simple pivot with 1 dimension (ServiceGroupOwner) and some measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do note the New Business-Amount and New Business-Volume amounts when NO SELECTION is made and when 1 &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ServiceGroupOwner value is selected. &lt;SPAN style="text-decoration: underline;"&gt;To restate, the New Business is looking for CLIENTS that have Revenue this year and had 0 revenue last year&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note the expressions for:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;New Business-Amount: &lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[CIB Parent Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;"=sum(AmountYTD)&amp;gt;0 and sum(AmountPYTD)=0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; }&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;AmountYTD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;New Business-Volume: &lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[CIB Parent Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;"=sum(AmountYTD)&amp;gt;0 and sum(AmountPYTD)=0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; }&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;QuantityYTD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I tried using AGGR over ServiceGroupOwner dimension but does not work either. Not sure where the disconnect is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="97978" alt="set_analysis_sample2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97978_set_analysis_sample2.JPG" style="height: 192px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do note that the amount 31,399,613 is the correct amount (this was done by extracting CIB Parent Name for Domestic Collections and comparing SUM(AmountYTD ), SUM(AmountPYTD, and SUM(QuantityYTD) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968868#M976296</guid>
      <dc:creator />
      <dc:date>2015-09-04T08:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with mutliple conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968869#M976297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 09:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-mutliple-conditions/m-p/968869#M976297</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-04T09:16:29Z</dc:date>
    </item>
  </channel>
</rss>

