<?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 Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792874#M280273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the bar chart, have you tried using the word DISTINCT: avg({$} DISTINCT WORKFLOW_DURATION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this solve your purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 20:51:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-01-29T20:51:47Z</dc:date>
    <item>
      <title>Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792871#M280270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data set shows transactional records that may result in multiple rows for the same workflow step and this it repeats the workflow duration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REQUEST_ID , WORKFLOW_STEP_NAME , WORKFLOW_DURATION, TRX_DATE&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 12/31/2014&lt;BR /&gt; &lt;BR /&gt; 02, StepA, 4, 11/30/2014&lt;BR /&gt; &lt;BR /&gt; 03, StepA, 8, 7/31/2014&lt;BR /&gt; &lt;BR /&gt; 04, StepA, 2, 9/25/2014&lt;BR /&gt; &lt;BR /&gt; 05, StepA, .123, 8/5/2014&lt;BR /&gt; &lt;BR /&gt; 06, StepA, 1, 11/12/2014&lt;BR /&gt; &lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the Avg Workflow Duration but don't want to include the duplicate rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REQUEST_ID , WORKFLOW_STEP_NAME , WORKFLOW_DURATION, TRX_DATE&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 10/31/2014&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 11/30/2014&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 12/31/2014&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, it's possible that a request repeats a workflow step - for example, we would see two rows with the same workflow step name but with different values for workflow duration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REQUEST_ID , WORKFLOW_STEP_NAME , WORKFLOW_DURATION, TRX_DATE&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;01, StepA, 5, 8/30/2014&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 10/31/2014&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 11/30/2014&lt;BR /&gt; &lt;BR /&gt; 01, StepA, 66, 12/31/2014&lt;BR /&gt; &lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither of these is exactly right when compared with the raw data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV is showing an average of ~24 days but if you exclude two of the entries for Req 01 for 66 days, it should be ~12 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? TIA!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 17:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792871#M280270</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-29T17:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792872#M280271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cassandra - I have just loaded the distinct rows and dropped the Trx_Date without any change to UI. It kind of meets your requirements. However, unsure if this is what you are looking for? Attached is the sample QVW with changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792872#M280271</guid>
      <dc:creator>manojkvrajan</dc:creator>
      <dc:date>2015-01-29T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792873#M280272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that we need the transactional rows in the data set in order to meet another requirement about showing a snapshot status count by month of how many unique requests are Open, Closed etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I appreciate the attempt, simply not loading the data I have will not meet all of my needs for the dashboard. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792873#M280272</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-29T20:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792874#M280273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the bar chart, have you tried using the word DISTINCT: avg({$} DISTINCT WORKFLOW_DURATION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this solve your purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792874#M280273</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-01-29T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792875#M280274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try that and it wasn't right either. I believe that in that case, it would only look at DISTINCT WORKFLOW_DURATION values which isn't necessarily accurate when you have a large data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792875#M280274</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-29T20:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792876#M280275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What makes it DISTINCT? The combination of REQUEST_ID, WORKFLOW_STEP_NAME, WORKFLOWDURATION, TRX_DATE all of them? Or just the first three?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792876#M280275</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-01-29T20:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792877#M280276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the sample data I loaded, I'm not really sure how to tell the difference between when a workflow step was genuinely completed more than once and so the affiliated durations are combined or when we had to add a transactional row in order to get the status count for the end of the month. Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792877#M280276</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-29T20:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792878#M280277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your sample file, what needs to be the exact Avg you want it to show?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 21:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792878#M280277</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-01-29T21:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792879#M280278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;SET ANALYSIS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;makes a dashboard lot more meaningful and action oriented. For example, if you just provide number of units sold by a product line in a month, it is good information, but it is not-actionable. If you add comparison against same month last year, last month or average of relevant product lines in this month, you have added context to the number. The business user can take more meaningful actions out of this report / dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;QlikView has feature called SET ANALYSIS that provides us a way to add this context. Set analysis predefines the SET OF DATA that our charts / tables use. So, using a Set Expression, we can tell our object (chart / table) to display values corresponding to various sets of data (e.g. a pre-defined time-period, geographic region, product lines etc.). All of the examples, I mentioned above as part of adding context can be accomplished using Set Analysis in Qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Most of the QlikView Professionals think that SET ANALYSIS is a complex feature. Through this post, I am trying to change their conviction towards it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;What is SET ANALYSIS ?&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Set Analysis can be understood by a simple analogy of how Qlikview works. We make selections on certain variables and the changes reflect in the entire application. This happens because through our selection, we have created a set of data which we want to use. In a similar fashion, using Set Analysis feature, we can pre-define the data to be displayed in our charts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Some features and characteristics for Set analysis are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;It is used to create different selection compared to the current application selections&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Must be used in aggregation function (Sum, Count….).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Expression always begins and ends with curly brackets { }&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG style="color: white; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Example dataset:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;SET ANALYSIS syntax broken down into three components:&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;Identifiers:&lt;/SPAN&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="background: white;" width="574"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P align="center" style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Identifier&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-left: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P align="center" style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;:Represents an empty set, no records&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;:Represents the set of all the records in the application&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;$&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;:Represents the records of the current selection&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;$1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;:Represents the previous selection&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Bookrmark01&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;:Represents the set of all records against bookmark ID or the bookmark name&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Examples:&lt;/STRONG&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;In below example, Current year selection is 2012 and previous selection was 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;Operators :&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;It&amp;nbsp; works on set identifiers&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="background: white;" width="625"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P align="center" style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Operator&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-left: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P align="center" style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Operator Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-left: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P align="center" style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Description&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Union&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Returns a set of records that belongs to union of sets.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Exclusion&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Returns records that belong to the first but not the second&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Intersection&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Returns records that belong to both of the set identifiers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #e6e6e6 1.0pt; border-top: none; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Symmetric Difference&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #E6E6E6 1.0pt; border-right: solid #E6E6E6 1.0pt; background: #FBFBFB; padding: 1.35pt 3.4pt 1.35pt 3.4pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Returns a set that belongs to either, but not both of the set identifiers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;Examples:&lt;/STRONG&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;In below example, I have created a bookmark “BOOKMARK_1” for company selection A, B and C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;Modifiers:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Modifiers are always in angle brackets &amp;lt;&amp;gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;It consists multiple fields and all fields have selection criteria.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Condition of fields within modifiers bypass the current selection criteria.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: 6.8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: white;"&gt;Dollar Sign Expansion:&lt;/SPAN&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;If we want to compare current year sale with previous year, previous year sales should reflect values in relation to current selection of year. For example if current selection of year is 2012, previous year should be 2011 and for current selection of year 2013, previous year is 2012.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: #2c2b2b;"&gt; &lt;STRONG&gt;“=Sum ({$&amp;lt;Year = {$ (=Max (Year)-1)} &amp;gt;} Sale) “&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Above expression always returns sale for previous year. Here $ sign (Font color red) is used to evaluate the value for previous year. $ sign is used to evaluate expression and to use variables in set modifiers. If we have variable that holds last year value&lt;/SPAN&gt; &lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;(vLASTYEAR)&lt;/STRONG&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;then expression can be written as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center; background: white;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Courier New';"&gt;“=Sum ({$vLASTYEAR)} &amp;gt;} Sale) “&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center; background: white;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 6.8pt; background: white;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: white;"&gt;Indirect SET ANALYSIS: Function P() and E() &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Let us take a scenario, where we want to show current sales of the companies who had sales last year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Expression should be similar like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Courier New';"&gt;=sum({$&amp;lt;Year={$(=Max(Year))},Company_Name={Companies who had sales last year}&amp;gt; } Sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;First we have to identify companies who had sales last year. To fix this problem, we will use function P() that is used to identify values within a field and function E() that exclude values within a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Finally, we have expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #2c2b2b; font-size: 8.0pt; font-family: 'Courier New';"&gt;=sum({&amp;lt;Year={$(=Max(Year))},Company_Name=P({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}Company_Name)&amp;gt;}Sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;This post was an example where we have brought out methods to use SET ANALYSIS in Qlikview. Have you used this feature before? If yes, did you find it useful? Do you have more nifty tricks to make Set Analysis more interesting? If not, do you think this article will enable you to use Set Analysis in your next dashboard?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.8pt; margin-bottom: .0001pt; text-align: justify; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;Do let me know your thoughts on using this feature in QlikView.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 21:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792879#M280278</guid>
      <dc:creator />
      <dc:date>2015-01-29T21:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792880#M280279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cassandra,&lt;/P&gt;&lt;P&gt;I have attached the sample qvw with both script and expression changes. It may meet your need. Let me know if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 21:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792880#M280279</guid>
      <dc:creator>manojkvrajan</dc:creator>
      <dc:date>2015-01-29T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792881#M280280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV is showing an average of ~24 days but if you exclude two of the entries for Req 01 for 66 days, it should be ~12 days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792881#M280280</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-30T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792882#M280281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great, Manoj! I've never seen anything quite like what you did and I think it will work for me. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 16:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax/m-p/792882#M280281</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-01-30T16:01:20Z</dc:date>
    </item>
  </channel>
</rss>

