<?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: intersection, set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045488#M351528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count({&amp;lt;YearField1=p(YearField2)&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 13:43:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-16T13:43:31Z</dc:date>
    <item>
      <title>intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045481#M351521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Senario:&lt;/P&gt;&lt;P&gt;I have year filter in app. I have a chart in which expressions I have coded as follows:&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;id)&lt;/P&gt;&lt;P&gt;.Problem:&lt;/P&gt;&lt;P&gt;if any selection is made in year filter which is in app(outside the chart), then the expression is fine. else it shows nothing as year will get assigned to null. But it should get assigned to *&lt;/P&gt;&lt;P&gt;is there any way to write using set intersection or any way without using if block in side chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045481#M351521</guid>
      <dc:creator />
      <dc:date>2016-02-16T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045482#M351522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Try this:&lt;/SPAN&gt;&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;Count({&amp;lt;Year=p(Year)&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: I don't understand why do you even need it? Is Count(id) not working the same way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045482#M351522</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-16T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045483#M351523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want Year just to follow the possible values of the Year list box, just remove the Set Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045483#M351523</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-16T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045484#M351524</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;what is it your trying to do with the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the above statements say, Count(id) would be what you want, as it will count everything until selections are made&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your set analysis is saying show me the count of id, where the they match the selections of year list. Thus why null when nothing is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045484#M351524</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-02-16T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045485#M351525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is year field in left side of '=' is different from that of in right side.&lt;/P&gt;&lt;P&gt;both belongs to different tables and I have to fetch year selected from outside chart and assign to another year field in side the chart(both year fields have different data)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045485#M351525</guid>
      <dc:creator />
      <dc:date>2016-02-16T13:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045486#M351526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is year field in left side of '=' is different from that of in right side.&lt;/P&gt;&lt;P&gt;both belongs to different tables and I have to fetch year selected from outside chart and assign to another year field in side the chart(both year fields have different data)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045486#M351526</guid>
      <dc:creator />
      <dc:date>2016-02-16T13:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045487#M351527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is year field in left side of '=' is different from that of in right side.&lt;/P&gt;&lt;P&gt;both belongs to different tables and I have to fetch year selected from outside chart and assign to another year field in side the chart(both year fields have different data)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045487#M351527</guid>
      <dc:creator />
      <dc:date>2016-02-16T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045488#M351528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count({&amp;lt;YearField1=p(YearField2)&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045488#M351528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-16T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045489#M351529</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;So i think you have an issue more with the data model, I would be looking to associate the two date fields in a link table or conical calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045489#M351529</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-02-16T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045490#M351530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both fields have the same name (Year) they are the same data.&lt;/P&gt;&lt;P&gt;For them to be different they must have different names.&lt;/P&gt;&lt;P&gt;Have a look at your data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045490#M351530</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-02-16T13:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045491#M351531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"$(=If(GetSelectedCount(Year2), Concat(DISTINCT Year2, ','), '*' ))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If your Year2 value set is smaller than Year1 set, but you want all Year1 values in case of no Year2 selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Otherwise, the p() function as shown by Sunny should do it, too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045491#M351531</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-16T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045492#M351532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, fields are different say as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Yearpole&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearpole is field and year is another field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year is filter outside the chart whose selected value must be assigned to yearpole.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;if no selection is made for year it is taking null.&amp;nbsp; but it should take *&amp;nbsp; i.e . all values. can u tell me the way without using if block as it&amp;nbsp; increases load.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045492#M351532</guid>
      <dc:creator />
      <dc:date>2016-02-16T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: intersection, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045493#M351533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; fields are different say as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Yearpole&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yearpole is field and year is another field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year is filter outside the chart whose selected value must be assigned to yearpole.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;if no selection is made for year it is taking null.&amp;nbsp; but it should take *&amp;nbsp; i.e . all values. can u tell me the way without using if block as it&amp;nbsp; increases load.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intersection-set-analysis/m-p/1045493#M351533</guid>
      <dc:creator />
      <dc:date>2016-02-16T14:04:09Z</dc:date>
    </item>
  </channel>
</rss>

