<?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 Set analysis expression issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968856#M951148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have tow tables one is master table which has dimensions such as time_date (date) field ,customer , sales status , watchID and sales data and other&amp;nbsp; table in which i have separately calculated previous month and previous quarter value of a sales status columns are like, time_date, previous_month_sales_status, previous_qtr_sales_status etc and joined these two tables on time_date+Customer key. Now in my straight table chart , I am using set analysis to calculate current Max month and previous month using variables and using those variables in expression but i am getting 2 rows in my chart i am not sure whats going wrong.&lt;/P&gt;&lt;P&gt;Fore current month its showing previous month sales value as 0 and other way too. Any help?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Current Sales Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev Month Sales St&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev QTR Sales St&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev To Prev Qtr Sales Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Current Month Sales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Previous Month Sales&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;XX&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;YY&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;GG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;XX&lt;/TD&gt;&lt;TD&gt;YY&lt;/TD&gt;&lt;TD&gt;FD&lt;/TD&gt;&lt;TD&gt;HU&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2015 07:32:39 GMT</pubDate>
    <dc:creator>miranrai</dc:creator>
    <dc:date>2015-12-08T07:32:39Z</dc:date>
    <item>
      <title>Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968856#M951148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have tow tables one is master table which has dimensions such as time_date (date) field ,customer , sales status , watchID and sales data and other&amp;nbsp; table in which i have separately calculated previous month and previous quarter value of a sales status columns are like, time_date, previous_month_sales_status, previous_qtr_sales_status etc and joined these two tables on time_date+Customer key. Now in my straight table chart , I am using set analysis to calculate current Max month and previous month using variables and using those variables in expression but i am getting 2 rows in my chart i am not sure whats going wrong.&lt;/P&gt;&lt;P&gt;Fore current month its showing previous month sales value as 0 and other way too. Any help?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Current Sales Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev Month Sales St&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev QTR Sales St&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev To Prev Qtr Sales Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Current Month Sales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Previous Month Sales&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;XX&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;YY&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;GG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;XX&lt;/TD&gt;&lt;TD&gt;YY&lt;/TD&gt;&lt;TD&gt;FD&lt;/TD&gt;&lt;TD&gt;HU&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 07:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968856#M951148</guid>
      <dc:creator>miranrai</dc:creator>
      <dc:date>2015-12-08T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968857#M951149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove prev to prev quarter sales status. it is due to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 05:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968857#M951149</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-12-09T05:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968858#M951150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you have two different status (&lt;STRONG&gt;Prev To Prev Qtr Sales Status)&lt;/STRONG&gt; for both&lt;/P&gt;&lt;P&gt;Current Month Sales and Previous Month Sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 06:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968858#M951150</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2015-12-09T06:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968859#M951151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its because I am having previous month/QTR/Yr status in my straight table. But I can't remove it as client want to see these status in same chart. So can anything be done on expression level to get the result without removing previous thing?? thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968859#M951151</guid>
      <dc:creator>miranrai</dc:creator>
      <dc:date>2015-12-09T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968860#M951152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i thing nothing wrong with it. it will show 2 rows &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Prev To Prev Qtr Sales Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one for CG and one for HU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how&amp;nbsp; Qlikview works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 02:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968860#M951152</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-12-10T02:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968861#M951153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to have&amp;nbsp; column &lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Prev to Prev Qtr Sales. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;thn your table is okay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or let us know, what output you exactly want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 05:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968861#M951153</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2015-12-10T05:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968862#M951154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.. Let me explain you my issue in detail. In this table 2nd record for which Prev To Prev Qtr Sales Status ='HU' is the correct record. Prev To Prev Qtr Sales Status ='GG' is the wrong one for previous to previous Qtr this GG value is coming from Previous Month (I don't know why so .. I guess as i have used Previous Month in set analysis that's why this record is popping up.). whats i want is to remove this GG record which i achieved by adding one more condition into my current month &amp;amp; previous month expression condition timedate from sales status = current month. But for previous month its still showing 0 value. I am attaching a sample qvw for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header headerSortUp" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;stomer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Current Sales Status&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Prev Month Sales St&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Prev QTR Sales St&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Prev To Prev Qtr Sales Status&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Current Month Sales&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Previous Month Sales&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;ABC&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;XX&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;YY&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;FD&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;GG&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;XX&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;YY&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;FD&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;HU&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;100&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;my desire result set is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Current Sales Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Prev Month Sales Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Prev QTR Sales St&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Prev To Prev Qtr Sales St&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Curr Month Sales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Previous Mon Sales&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;XX&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;YY&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;HU&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 04:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-issue/m-p/968862#M951154</guid>
      <dc:creator>miranrai</dc:creator>
      <dc:date>2015-12-11T04:09:21Z</dc:date>
    </item>
  </channel>
</rss>

