<?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: Dimension linked to the selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924583#M467951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the dimension, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt; 0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'REGION') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the expression use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 10:01:00 GMT</pubDate>
    <dc:creator>r3iuk</dc:creator>
    <dc:date>2015-10-07T10:01:00Z</dc:date>
    <item>
      <title>Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924582#M467950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set a Dimension if i want that the name in the dimension change with every selection done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example i have the sales of a region, and i want to appear the name of the region selected, but if i do not select the region i want a full acumulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example this is the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="188"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="93"&gt;REGION&lt;/TD&gt;&lt;TD class="xl65" width="95"&gt;SALES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Andalucia&lt;/TD&gt;&lt;TD class="xl65"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Madrid &lt;/TD&gt;&lt;TD class="xl65"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cataluña&lt;/TD&gt;&lt;TD class="xl65"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This should be the table with no selection in Region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" width="80"&gt;&lt;STRONG&gt;SALES&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;REGION&lt;/TD&gt;&lt;TD class="xl64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what i want if i select for example "Cataluña"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="80"&gt;Dimension&lt;/TD&gt;&lt;TD class="xl66" width="80"&gt;SALES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cataluña&lt;/TD&gt;&lt;TD class="xl66"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;REGION&lt;/TD&gt;&lt;TD class="xl66"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 09:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924582#M467950</guid>
      <dc:creator />
      <dc:date>2015-10-07T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924583#M467951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the dimension, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt; 0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'REGION') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the expression use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 10:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924583#M467951</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2015-10-07T10:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924584#M467952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have number of ways to do this there are UI tricks which can be used&amp;nbsp; like having two objects (Charts) and swaping then on selection .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 10:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924584#M467952</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-10-07T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924585#M467953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I liked the solution, but frankly speaking didn't understand few technical things so thought of asking &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; like when selecting 2 regions, the index functioning is returning 0, may be because multiple selection is giving null in REGION(QV uses 'only' when no aggregation provided?) in index function. But its not impacting the output, not sure why.&lt;/P&gt;&lt;P&gt;Also I thought 'if' in calculated dimension will show one of the true condition as dimension in chart('REGION' or REGION) but it is showing both as desired, not sure how it is happening technically. Is it because of disregarded dimension REGION in expression, not sure how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I tried with concat(REGION) in index function, it resulted in 1 as index output when multiple regions are selected, but since without it also its working, just wanted to know technical stuff behind it. Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Digvijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 07:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924585#M467953</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-08T07:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924586#M467954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculated dimension takes each value in the REGION dimension in turn and applies the calculation to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If for example If we have Andalucia &amp;amp; Madrid selected. The part of the calculation that is &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|')&lt;/SPAN&gt;&amp;nbsp; will contain the string 'Andalucia|Madrid'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for the dimensions Andalucia and Madrid, the function &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&amp;nbsp; will return a positive value because each of these dimensions can be found in the string 'Andalucia|Madrid'.&amp;nbsp; Therefore in these 2 cases, the IF statement is true and will return the true part, i.e. the value in the field&amp;nbsp; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION&lt;/SPAN&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of dimension Cataluna, this value is not in the string 'Andalucia|Madrid', therefore the Index function returns zero, and the IF statment is false so the false part is returned, i.e. the string value 'REGION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this example you end up with 2 dimensions of Andalucia and Madrid because they were selected, plus the derived dimension 'REGION' which contains the unselected dimensions (in this case just Cataluna).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values for all the dimensions get reported in the table because we used the set analysis clause in the expression to ignore the REGION selection filtering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 13:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924586#M467954</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2015-10-08T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension linked to the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924587#M467955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing the detail. Your first statement had the crux which made me comfortable understanding rest of the detail. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-linked-to-the-selection/m-p/924587#M467955</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-08T15:20:56Z</dc:date>
    </item>
  </channel>
</rss>

