<?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 Compare fix dimension and selected dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-fix-dimension-and-selected-dimension/m-p/735611#M1072518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a stacked - trelli bar chart. dimension1 is for trelli, dimension2 for the different bars and dimension 3 for the stacking and coloring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension2 (lets say state) needs to contain only 2 values which are - a fixed state (let's take Texas) and all the selected states labelled 'Others'. If there's no selection on states then only Texas state will be shown while if there is a selection, Texas will be compared to all selected states combined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made this chart but I am struggling with set analysis on dimensions that is, the part where Texas gets compared with selection is not working. Is it possible? Here's the calculated dimension I have and I know why it's wrong but please help me improve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= if( [state]='Texas', '&lt;EM&gt;Texas&lt;/EM&gt;', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( index( GetFieldSelections([state]), [state]) &amp;gt; 0, 'Others' ))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made sense. Please help me achieve this. I just started Qlikview last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-20T18:02:30Z</dc:date>
    <item>
      <title>Compare fix dimension and selected dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-fix-dimension-and-selected-dimension/m-p/735611#M1072518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a stacked - trelli bar chart. dimension1 is for trelli, dimension2 for the different bars and dimension 3 for the stacking and coloring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension2 (lets say state) needs to contain only 2 values which are - a fixed state (let's take Texas) and all the selected states labelled 'Others'. If there's no selection on states then only Texas state will be shown while if there is a selection, Texas will be compared to all selected states combined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made this chart but I am struggling with set analysis on dimensions that is, the part where Texas gets compared with selection is not working. Is it possible? Here's the calculated dimension I have and I know why it's wrong but please help me improve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= if( [state]='Texas', '&lt;EM&gt;Texas&lt;/EM&gt;', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( index( GetFieldSelections([state]), [state]) &amp;gt; 0, 'Others' ))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made sense. Please help me achieve this. I just started Qlikview last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-fix-dimension-and-selected-dimension/m-p/735611#M1072518</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
  </channel>
</rss>

