<?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 - always include a dimension and filter to only a specific value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930585#M979019</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I then modified it to the below:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum ({$&amp;lt;CategoryB={'Apple'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Apple'}&amp;gt;}Data)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum ({$&amp;lt;CategoryB={'Orange'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Orange'}&amp;gt;}Data)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The above seems to work perfectly; however, I noticed an issue when a user utilizes a List Box for CategoryB. If the user selects Apple from the List Box, I would expect that the entire line for Orange will disappear. Instead, the data for Orange only disappears for all dimensions &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;except&lt;/SPAN&gt; GHI.&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Actually, those expressions completely ignore any selection in both category fields. See attached qvw. Or am I totally misunderstanding you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; What I want to happen is if the user selects Apple, then the graph should only show the line for Apple.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you want a selection in CategoryB to be applied to your expression then don't overrule that selection in the set modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 17:17:41 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-08-28T17:17:41Z</dc:date>
    <item>
      <title>Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930584#M979018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikview Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Experiencing some challenges with my set analysis if I am incorporating two conditions. For simplicity, my table has three columns. First column is CategoryA. Second column is CategoryB. Third Column is Data. It looks like this:&lt;/P&gt;&lt;P&gt;CategoryA, CategoryB, Data&lt;/P&gt;&lt;P&gt;ABC, Apple, 10&lt;/P&gt;&lt;P&gt;ABC, Apple, 2&lt;/P&gt;&lt;P&gt;ABC, Orange, 5&lt;/P&gt;&lt;P&gt;DEF, Apple, 20&lt;/P&gt;&lt;P&gt;DEF, Orange, 10&lt;/P&gt;&lt;P&gt;GHI, Apple, 20&lt;/P&gt;&lt;P&gt;GHI, Apple, 5&lt;/P&gt;&lt;P&gt;GHI, Orange, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a line chart with CategoryA as the dimension and sum of Data as expression. I also have a list box for CategoryA where the user can select only what dimension to display on the chart. However I want CategoryA = GHI to always display no matter what selection the user makes i.e. selecting ABC, DEF will still show a chart with dimensions ABC, DEF &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; GHI. This part I don't have any issues executing. However on top of that, I want to have &lt;SPAN style="text-decoration: underline;"&gt;two&lt;/SPAN&gt; expressions (two lines on the chart) wherein one expression is fixed to &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; display Data where CategoryB = Apple and a second expression to &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; display CategoryB = Orange. Now this seems simple enough but I can't seem to figure out what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first came up with this:&lt;/P&gt;&lt;P&gt;sum ({$+1&amp;lt;CategoryA={'GHI'},CategoryB={'Apple'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;Using the above I noticed that the data filters for Apple only on the dimension of GHI. For ABC and/or DEF, it is ignoring that part of the formula and is including the Data for Orange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then modified it to the below:&lt;/P&gt;&lt;P&gt;sum ({$&amp;lt;CategoryB={'Apple'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Apple'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;sum ({$&amp;lt;CategoryB={'Orange'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Orange'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;The above seems to work perfectly; however, I noticed an issue when a user utilizes a List Box for CategoryB. If the user selects Apple from the List Box, I would expect that the entire line for Orange will disappear. Instead, the data for Orange only disappears for all dimensions &lt;SPAN style="text-decoration: underline;"&gt;except&lt;/SPAN&gt; GHI. With Apple selected on the List Box and assuming all dimensions are selected on the CategoryA List Box, the resulting graph shows a line for Apple, and a dot for Orange above the GHI dimension. What I want to happen is if the user selects Apple, then the graph should only show the line for Apple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930584#M979018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-28T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930585#M979019</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I then modified it to the below:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum ({$&amp;lt;CategoryB={'Apple'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Apple'}&amp;gt;}Data)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum ({$&amp;lt;CategoryB={'Orange'}&amp;gt;+1&amp;lt;CategoryB={'GHI'},CategoryB={'Orange'}&amp;gt;}Data)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The above seems to work perfectly; however, I noticed an issue when a user utilizes a List Box for CategoryB. If the user selects Apple from the List Box, I would expect that the entire line for Orange will disappear. Instead, the data for Orange only disappears for all dimensions &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;except&lt;/SPAN&gt; GHI.&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Actually, those expressions completely ignore any selection in both category fields. See attached qvw. Or am I totally misunderstanding you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; What I want to happen is if the user selects Apple, then the graph should only show the line for Apple.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you want a selection in CategoryB to be applied to your expression then don't overrule that selection in the set modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 17:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930585#M979019</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-28T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930586#M979020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is an typo in your expressions, the second field in each set expression should be CategoryA, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can achieve what you want using the intersection operator *, something like&lt;/P&gt;&lt;P&gt;=sum ({$&amp;lt;CategoryB*={'Apple'}&amp;gt;+&amp;lt;CategoryA={'GHI'},CategoryB*={'Apple'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;=sum ({$&amp;lt;CategoryB*={'Orange'}&amp;gt;+&amp;lt;CategoryA={'GHI'},CategoryB*={'Orange'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached Gysberts modified sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 18:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930586#M979020</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-28T18:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930587#M979021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may have probably not been clear with the desired situation. The charts do not dynamically update based on the selections in Category. But thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 07:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930587#M979021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T07:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930588#M979022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly! I do have another problem though. Although technically your corrected expression above works, it does not on how I have laid out my tables. I missed one detail that I did not perceive to be of importance on this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually do not want GHI to appear on the list box (since it is redundant as it is always included on charts by default anyway). To work around this, what I did was add another column (which I call _CatA) which mirrors CategoryA except that the value is blank where CategoryA = GHI. Using your revised calculation unfortunately also resulted in excluding GHI entirely on the charts &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;if the user selects from _CatA&lt;/STRONG&gt;&lt;/SPAN&gt; listbox. I am not sure if can be fixed or if there is better way of hiding GHI from the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to attach the file here but can't seem to find a button to do this. I just see Insert Image/Video/Link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930588#M979022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T08:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930589#M979023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached my document to better illustrate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 09:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930589#M979023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - always include a dimension and filter to only a specific value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930590#M979025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached, using an expression in the list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({1&amp;lt;CategoryA -= {GHI}&amp;gt;}CategoryA), CategoryA)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-always-include-a-dimension-and-filter-to-only-a/m-p/930590#M979025</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-14T17:20:53Z</dc:date>
    </item>
  </channel>
</rss>

