<?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: Using the same dimension for both axis in a pivot &amp;quot;transforamation matrix&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1530368#M457281</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;thanks for the swift and very helpfuel reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 10:43:28 GMT</pubDate>
    <dc:creator>Mr_small_t</dc:creator>
    <dc:date>2019-01-15T10:43:28Z</dc:date>
    <item>
      <title>Using the same dimension for both axis in a pivot "transforamation matrix"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1529573#M457279</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table as shown below with information of a students id (Stid), the schoolyear (Schoolyear), name of the school (School) and grade/level (grade).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a "transformation matrix"/pivot table which illustrates to what degree students changes school between the schoolyear. I.e. Along the vertical axis in a pivot table i need to have the school of choice for "2. graders" in the schoolyear of 20172018, and along the horisontal axis in the pivot table i need to have the school of choice for the "3. graders" in the schoolyear of 20182019. The fields in the table should be populated with the count of disctinct student id numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to understand other crosstable-discussions, but I have not been able to figure out how to do this. I hope someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Stid, Schoolyear, School, grade&lt;BR /&gt;1234, 20162017, School A, 1&lt;BR /&gt;1234, 20172018, School A, 2&lt;BR /&gt;1234, 20182019, School A, 3&lt;BR /&gt;2234, 20162017, School B, 1&lt;BR /&gt;2234, 20172018, School B, 2&lt;BR /&gt;2234, 20182019, School B, 3&lt;BR /&gt;3234, 20162017, School C, 1&lt;BR /&gt;3234, 20172018, School C, 2&lt;BR /&gt;3234, 20182019, School C, 3&lt;BR /&gt;4234, 20162017, School C, 1&lt;BR /&gt;4234, 20172018, School A, 2&lt;BR /&gt;4234, 20182019, School A, 3&lt;BR /&gt;5234, 20162017, School C, 1&lt;BR /&gt;5234, 20172018, School A, 2&lt;BR /&gt;5234, 20182019, School A, 3&lt;BR /&gt;6234, 20162017, School C, 1&lt;BR /&gt;6234, 20172018, School B, 2&lt;BR /&gt;6234, 20182019, School A, 3&lt;BR /&gt;7234, 20162017, School A, 1&lt;BR /&gt;7234, 20172018, School B, 2&lt;BR /&gt;7234, 20182019, School A, 3&lt;BR /&gt;8234, 20172018, School B, 1&lt;BR /&gt;8234, 20182019, School A, 2&lt;BR /&gt;9234, 20172018, School B, 1&lt;BR /&gt;9234, 20182019, School B, 2&lt;BR /&gt;10234, 20172018, School B, 1&lt;BR /&gt;10234, 20182019, School C, 2&lt;BR /&gt;11234, 20172018, School A, 1&lt;BR /&gt;11234, 20182019, School A, 2&lt;BR /&gt;12234, 20172018, School A, 1&lt;BR /&gt;12234, 20182019, School C, 2&lt;BR /&gt;13234, 20172018, School B, 1&lt;BR /&gt;13234, 20182019, School C, 2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1529573#M457279</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2019-01-11T16:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using the same dimension for both axis in a pivot "transforamation matrix"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1529836#M457280</link>
      <description>&lt;P&gt;Add a &lt;STRONG&gt;Data:&amp;nbsp;&lt;/STRONG&gt;label to the inline load and the following after the inline load:&lt;/P&gt;&lt;PRE&gt;Let vM2 = 20172018;
Let vM3 = 20182019;
 
T1:
LOAD 
	Stid,
	School as S2
Resident Data Where grade = 2 and Schoolyear = $(vM2);

Join (T1)
LOAD 
	Stid,
	School as S3
Resident Data Where grade = 3 and Schoolyear = $(vM3);&lt;/PRE&gt;&lt;P&gt;Next, create a pivot table using S2 and S3 as dimensions, and count(Stid) as the expression. Drag one of the dimensions to the top to create a cross-table. See attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 08:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1529836#M457280</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-01-14T08:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using the same dimension for both axis in a pivot "transforamation matrix"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1530368#M457281</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;thanks for the swift and very helpfuel reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 10:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-same-dimension-for-both-axis-in-a-pivot-quot/m-p/1530368#M457281</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2019-01-15T10:43:28Z</dc:date>
    </item>
  </channel>
</rss>

