<?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 Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441951#M1161761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Using the set analysis wizard &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-In set analysis you can't use the fields more than one time in a set, you've used the Quadrant twice (think of this as using two listboxes simultaniously).&lt;/P&gt;&lt;P&gt;-the $-sign expansion tries to evaluate the expression, but there is and error as Mental Health is used without quotes and it's not a field name.&lt;/P&gt;&lt;P&gt;-Day Care is also used in a wrong way, since the using of P function assumes a field name, not the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;Quadrant={"Acute"}&amp;gt;+1&amp;lt;Quadrant={"Mental Health"}, QuadrantSubCategory={"In Patients","Day Care"}&amp;gt;} Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2012 18:06:28 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-11-16T18:06:28Z</dc:date>
    <item>
      <title>Multiple Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441950#M1161760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to pull through the sum of Cost for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quadrant (field), where the field shows "Acute"&lt;/LI&gt;&lt;LI&gt;Quadrant (field), where the field shows "Mental Health", but only where the Quadrant sub category (field) shows "Day Care" and "In Patients". &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used a set analysis wizard to create the script below, and QV tells me that the expression is ok, but the chart is showing "no data to display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Money&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Quadrant&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;+={'Acute'},Quadrant+=P({1&amp;lt;Quadrant={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(=Mental Health)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;}&amp;gt;}Day Care)&amp;gt;}Cost)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Grateful for any advice please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Claire &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441950#M1161760</guid>
      <dc:creator />
      <dc:date>2012-11-16T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441951#M1161761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Using the set analysis wizard &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-In set analysis you can't use the fields more than one time in a set, you've used the Quadrant twice (think of this as using two listboxes simultaniously).&lt;/P&gt;&lt;P&gt;-the $-sign expansion tries to evaluate the expression, but there is and error as Mental Health is used without quotes and it's not a field name.&lt;/P&gt;&lt;P&gt;-Day Care is also used in a wrong way, since the using of P function assumes a field name, not the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;Quadrant={"Acute"}&amp;gt;+1&amp;lt;Quadrant={"Mental Health"}, QuadrantSubCategory={"In Patients","Day Care"}&amp;gt;} Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 18:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441951#M1161761</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-16T18:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441952#M1161762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try using the set analysis wizard and that's the formula it gave me, so it's obviously not all that straight forward!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Whiteline for your advice, much appreciated! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Analysis/m-p/441952#M1161762</guid>
      <dc:creator />
      <dc:date>2012-11-20T09:32:50Z</dc:date>
    </item>
  </channel>
</rss>

