<?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 Ignore set expression dimension filter selection in other measure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481122#M1226093</link>
    <description>&lt;P&gt;I have a dimension which has many values and so have written a set expression to categorize and roll up these dimensions into easier to read categories, for example:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;=If([Dimension 1]='A000' ,'A',&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If([Dimension 1]='B006' Or [Dimension 1]='H001' Or [Dimension 1]='B009','B',&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If([Dimension 1]='C003' Or [Dimension 1]='D005','C',&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;etc.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;))))))&lt;/P&gt;
&lt;P&gt;So now I have created a new rolled up category for Dimension 1 which I then name Category 1. If I were to select one of the categories, like B, it would filter my sheet and appear in my selections (although the selection would show the entire formula and not what I had named it, Category 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to add a Measure to my sheet that would ignore my set expression selection from above?&lt;/P&gt;
&lt;P&gt;I know that if I were to add into a set expression "[Dimension 1]=" that would ignore any Dimension 1 selections for the Measure. However, it does not seem to work inside of Category 1. For example: selection of "Category 1 = A" will not be ignored even though it is only selecting for A000 within that category. If I selected "Dimension 1 = A000", the measure will ignore that selection because of my "[Dimension 1]=" set expression.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 21:39:26 GMT</pubDate>
    <dc:creator>Young_Buck</dc:creator>
    <dc:date>2024-09-11T21:39:26Z</dc:date>
    <item>
      <title>Ignore set expression dimension filter selection in other measure</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481122#M1226093</link>
      <description>&lt;P&gt;I have a dimension which has many values and so have written a set expression to categorize and roll up these dimensions into easier to read categories, for example:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;=If([Dimension 1]='A000' ,'A',&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If([Dimension 1]='B006' Or [Dimension 1]='H001' Or [Dimension 1]='B009','B',&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If([Dimension 1]='C003' Or [Dimension 1]='D005','C',&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;etc.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;))))))&lt;/P&gt;
&lt;P&gt;So now I have created a new rolled up category for Dimension 1 which I then name Category 1. If I were to select one of the categories, like B, it would filter my sheet and appear in my selections (although the selection would show the entire formula and not what I had named it, Category 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to add a Measure to my sheet that would ignore my set expression selection from above?&lt;/P&gt;
&lt;P&gt;I know that if I were to add into a set expression "[Dimension 1]=" that would ignore any Dimension 1 selections for the Measure. However, it does not seem to work inside of Category 1. For example: selection of "Category 1 = A" will not be ignored even though it is only selecting for A000 within that category. If I selected "Dimension 1 = A000", the measure will ignore that selection because of my "[Dimension 1]=" set expression.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 21:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481122#M1226093</guid>
      <dc:creator>Young_Buck</dc:creator>
      <dc:date>2024-09-11T21:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore set expression dimension filter selection in other measure</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481125#M1226094</link>
      <description>&lt;P&gt;Your filter is exhibiting the "Fields on the Fly" behavior.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/Calculated-Fields/ba-p/1694383" target="_blank"&gt;https://community.qlik.com/t5/Design/Calculated-Fields/ba-p/1694383&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You need to force the selection to be in the [Dimension 1] field. You can do this on one of two ways:&lt;/P&gt;
&lt;P&gt;Wrap the dimension expression in a CalcDim() function:&lt;/P&gt;
&lt;PRE&gt;=CalcDim(&lt;BR /&gt;If([Dimension 1]='A000' ,'A',&amp;nbsp;&lt;BR /&gt;If([Dimension 1]='B006' Or [Dimension 1]='H001' Or [Dimension 1]='B009','B',&lt;BR /&gt;If([Dimension 1]='C003' Or [Dimension 1]='D005','C'&lt;BR /&gt;' '&lt;BR /&gt;))))&lt;/PRE&gt;
&lt;P&gt;or wrap in an Aggr() function that specifies what field(s) you want to make the selection in:&lt;/P&gt;
&lt;PRE&gt;=Aggr(&lt;BR /&gt;If([Dimension 1]='A000' ,'A',&amp;nbsp;&lt;BR /&gt;If([Dimension 1]='B006' Or [Dimension 1]='H001' Or [Dimension 1]='B009','B',&lt;BR /&gt;If([Dimension 1]='C003' Or [Dimension 1]='D005','C'&lt;BR /&gt;' '&lt;BR /&gt;))),[Dimension 1])&lt;/PRE&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/" target="_blank"&gt;https://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note to be too pedantic, but your dimension expression is not a "set expression" -- that's something else.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 00:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481125#M1226094</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-09-12T00:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore set expression dimension filter selection in other measure</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481134#M1226095</link>
      <description>&lt;P&gt;This worked!! Thank you so much for the quick reply!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 01:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-set-expression-dimension-filter-selection-in-other/m-p/2481134#M1226095</guid>
      <dc:creator>Young_Buck</dc:creator>
      <dc:date>2024-09-12T01:45:29Z</dc:date>
    </item>
  </channel>
</rss>

