<?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: How to create a combination matrix in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465132#M99147</link>
    <description>&lt;P&gt;Hello, Blue!&lt;/P&gt;
&lt;P&gt;Load your field twice in different tables like this:&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;load * Inline [&lt;BR /&gt;Field1&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Table2:&lt;BR /&gt;load * Inline [&lt;BR /&gt;Field2&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Then build your pivot table with Field1 as column and Field2 as row.&lt;/P&gt;
&lt;P&gt;The measure would be:&amp;nbsp;if(Field2&amp;gt;Field1,Field1&amp;amp;'-'&amp;amp;Field2)&lt;/P&gt;
&lt;P&gt;The result is in the attached image.&lt;/P&gt;
&lt;P&gt;Hope this is what you are looking for.&lt;/P&gt;
&lt;P&gt;Santo.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 02:07:49 GMT</pubDate>
    <dc:creator>amonjaras_c40</dc:creator>
    <dc:date>2024-06-25T02:07:49Z</dc:date>
    <item>
      <title>How to create a combination matrix</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465097#M99145</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;
&lt;P&gt;I am trying to create a matrix with values combined on a single field.&lt;/P&gt;
&lt;P&gt;For data, I have a table of &lt;EM&gt;Values&lt;/EM&gt; that contains &lt;EM&gt;A, B, C, D&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;The expected outcome is the combination without swapped values of all of the items that &lt;EM&gt;Values&lt;/EM&gt; has into a new field, named &lt;EM&gt;Combinations&lt;/EM&gt;:&lt;/P&gt;
&lt;P&gt;A-B, A-C, A-D, B-C, B-D, C-D.&lt;/P&gt;
&lt;P&gt;(These values are &lt;U&gt;not&lt;/U&gt; valid: A-A, B-B, C-C, D-D, B-A, C-A,C-B, D-A, D-B, D-C).&lt;/P&gt;
&lt;P&gt;The results may also look as:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEMONIO_AZUL_0-1719264641871.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168415i6CFA8EECFC2D673D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DEMONIO_AZUL_0-1719264641871.png" alt="DEMONIO_AZUL_0-1719264641871.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any hints or a solution will be much appreciated. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 21:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465097#M99145</guid>
      <dc:creator>DEMONIO_AZUL</dc:creator>
      <dc:date>2024-06-24T21:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a combination matrix</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465132#M99147</link>
      <description>&lt;P&gt;Hello, Blue!&lt;/P&gt;
&lt;P&gt;Load your field twice in different tables like this:&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;load * Inline [&lt;BR /&gt;Field1&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Table2:&lt;BR /&gt;load * Inline [&lt;BR /&gt;Field2&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Then build your pivot table with Field1 as column and Field2 as row.&lt;/P&gt;
&lt;P&gt;The measure would be:&amp;nbsp;if(Field2&amp;gt;Field1,Field1&amp;amp;'-'&amp;amp;Field2)&lt;/P&gt;
&lt;P&gt;The result is in the attached image.&lt;/P&gt;
&lt;P&gt;Hope this is what you are looking for.&lt;/P&gt;
&lt;P&gt;Santo.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 02:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465132#M99147</guid>
      <dc:creator>amonjaras_c40</dc:creator>
      <dc:date>2024-06-25T02:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a combination matrix</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465136#M99148</link>
      <description>&lt;P&gt;Or you can use a variation of&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/203155"&gt;@amonjaras_c40&lt;/a&gt;&amp;nbsp;solution and move everything to the Load Script. This way your Measure will be simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TempMatrix:
load * Inline [
Field1
A
B
C
D
];

JOIN (TempMatrix)
Table2:
load * Inline [
Field2
A
B
C
D
];

Matrix:
LOAD
Field1,
Field2,
If(Field2 &amp;gt; Field1, Field1 &amp;amp; '-' &amp;amp; Field2) AS Combination
RESIDENT
	TempMatrix
;

DROP TABLE TempMatrix;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your Pivot Table settings will be like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1719282184225.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168421i095F4B3DA06EB303/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1719282184225.png" alt="marksouzacosta_0-1719282184225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Measure is just:&amp;nbsp;&lt;STRONG&gt;MaxString(Combination)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mark Costa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 02:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-combination-matrix/m-p/2465136#M99148</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-25T02:26:04Z</dc:date>
    </item>
  </channel>
</rss>

