<?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: Load selection to Array and use it as dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-selection-to-Array-and-use-it-as-dimension/m-p/1084335#M524028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a calulated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(concat(distinct [Product number], ','), [Product number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 13:15:14 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-22T13:15:14Z</dc:date>
    <item>
      <title>Load selection to Array and use it as dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selection-to-Array-and-use-it-as-dimension/m-p/1084334#M524027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have tried to search a little on this, but don't find anything that is useful. Maybe I'm looking for a bad solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Today I have a pivot that list material that are included in structures (products). And I have color coded it with blue, pink and green. Based on if the material have quantity in just one of them or both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;And just have a color code on the text based on MAX or MIN number. So this work just fine, but doesn’t support to analyze more than 2 structures.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;So I got the idea to use an array maybe? And load the array with an ID and 'product number'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Any suggestion how I should do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="ruby" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1456138025447228 jive_text_macro" jivemacro_uid="_1456138025447228"&gt;
&lt;P&gt;=if(Sum({&amp;lt;[Product number] = {"$(=Min([Product number]))"}&amp;gt;}Quantity)&amp;gt;0 and Sum({&amp;lt;[Product number] = {"$(=Max([Product number]))"}&amp;gt;}Quantity)&amp;gt;0,RGB(77,167,65),&lt;/P&gt;
&lt;P&gt;if(Sum({&amp;lt;[Product number] = {"$(=Min([Product number]))"}&amp;gt;}Quantity)&amp;gt;0 and Sum({&amp;lt;[Product number] = {"$(=Max([Product number]))"}&amp;gt;}Quantity)=0,RGB(0,153,204),&lt;/P&gt;
&lt;P&gt;if(Sum({&amp;lt;[Product number] = {"$(=Min([Product number]))"}&amp;gt;}Quantity)=0 and Sum({&amp;lt;[Product number] = {"$(=Max([Product number]))"}&amp;gt;}Quantity)&amp;gt;0,RGB(232,146,124),RGB(192,192,192))))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="2016-02-22_11-27-58.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115448_2016-02-22_11-27-58.jpg" style="height: 428px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 11:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selection-to-Array-and-use-it-as-dimension/m-p/1084334#M524027</guid>
      <dc:creator />
      <dc:date>2016-02-22T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load selection to Array and use it as dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selection-to-Array-and-use-it-as-dimension/m-p/1084335#M524028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a calulated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(concat(distinct [Product number], ','), [Product number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 13:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selection-to-Array-and-use-it-as-dimension/m-p/1084335#M524028</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-22T13:15:14Z</dc:date>
    </item>
  </channel>
</rss>

