<?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: Multiple Conditions and Multiple variables in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286747#M402789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If($(vShowEarnedHours) = 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(Poolk)) = 0, Sum(AvailableCapacity),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Poolk = 'X', sum(AvailableCapacity)/Count(DISTINCT [Work Center]))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 16:33:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-20T16:33:21Z</dc:date>
    <item>
      <title>Multiple Conditions and Multiple variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286746#M402788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot chart where I am trying to calculate a field called available capacity..&amp;nbsp; But this based on a variable and another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to say:&lt;/P&gt;&lt;P&gt;if vshowearnedhours=1 &lt;/P&gt;&lt;P&gt;then&amp;nbsp; &lt;/P&gt;&lt;P&gt;if pooled=' ' sum (availablecapacity)&lt;/P&gt;&lt;P&gt;or if pooled='x'&lt;/P&gt;&lt;P&gt;sum availablecapacity/count (distinct [work center])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing set analysis and here is what I have but it is not working at all..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vShowEarnedHours)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Poolk&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={''}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AvailableCapacity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Poolk&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'X'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AvailableCapacity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Work Center]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 15:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286746#M402788</guid>
      <dc:creator />
      <dc:date>2017-01-20T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions and Multiple variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286747#M402789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If($(vShowEarnedHours) = 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(Poolk)) = 0, Sum(AvailableCapacity),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Poolk = 'X', sum(AvailableCapacity)/Count(DISTINCT [Work Center]))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 16:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286747#M402789</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-20T16:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions and Multiple variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286748#M402790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but does not work.. no results.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286748#M402790</guid>
      <dc:creator />
      <dc:date>2017-01-20T17:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions and Multiple variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286749#M402791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample or some sample data to show what exactly are you trying to achieve? May be knowing the input and output might help me better understand the issue and give you a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1286749#M402791</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-21T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions and Multiple variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1570801#M442109</link>
      <description>&lt;P&gt;Try Something like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({$&amp;lt;ShowEarnedHours={1},Poolk={''}&amp;gt;}AvailableCapacity)&lt;BR /&gt;+&amp;nbsp;&lt;BR /&gt;Sum({$&amp;lt;ShowEarnedHours={1},Poolk={'X'}&amp;gt;}AvailableCapacity/Count(DISTINCT&amp;nbsp;[Work Center]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 06:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-and-Multiple-variables-in-set-analysis/m-p/1570801#M442109</guid>
      <dc:creator>shraddhawalekar</dc:creator>
      <dc:date>2019-04-18T06:10:04Z</dc:date>
    </item>
  </channel>
</rss>

