<?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 Create a correlation matrix from single dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-correlation-matrix-from-single-dimension/m-p/2144735#M93143</link>
    <description>&lt;P&gt;I have a data structure that looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD * Inline [
Question, RespondentID, Answer
I like swimming,1,1
I like running,1,3
I like Qlik,1,10
I like swimming,2,2
I like running,2,10
I like Qlik,2,10
I like swimming,3,3
I like running,3,-1
I like Qlik,3,9];&lt;/LI-CODE&gt;
&lt;P&gt;So, I have three dimensions Question, RespondentID and Answer. Now, I would like to create a correlation matrix between the three different questions and how the answers correlate from the respondents within Qlik Sense.&lt;/P&gt;
&lt;P&gt;This means I have the three different questions at the top, three different questions left and then in the data fields, I see if the answers given are correlated when looking at the answer per respondent.&lt;/P&gt;
&lt;P&gt;I cannot get this visual to work. Has anyone an idea how to create such a correlation matrix?&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;To get the correlation between two specified questions, I can use the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;correl(
aggr(
Avg({&amp;lt;Question={'I like swimming'}&amp;gt;} Answer), RespondentID
),
aggr(
Avg({&amp;lt;Question={'I like running'}&amp;gt;} Answer), RespondentID
)
)&lt;/LI-CODE&gt;
&lt;P&gt;However, I am not succeeding in altering this measure so it creates a correlation matrix for multiple questions at once.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 11:00:45 GMT</pubDate>
    <dc:creator>ernstblaauw</dc:creator>
    <dc:date>2023-12-06T11:00:45Z</dc:date>
    <item>
      <title>Create a correlation matrix from single dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-correlation-matrix-from-single-dimension/m-p/2144735#M93143</link>
      <description>&lt;P&gt;I have a data structure that looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD * Inline [
Question, RespondentID, Answer
I like swimming,1,1
I like running,1,3
I like Qlik,1,10
I like swimming,2,2
I like running,2,10
I like Qlik,2,10
I like swimming,3,3
I like running,3,-1
I like Qlik,3,9];&lt;/LI-CODE&gt;
&lt;P&gt;So, I have three dimensions Question, RespondentID and Answer. Now, I would like to create a correlation matrix between the three different questions and how the answers correlate from the respondents within Qlik Sense.&lt;/P&gt;
&lt;P&gt;This means I have the three different questions at the top, three different questions left and then in the data fields, I see if the answers given are correlated when looking at the answer per respondent.&lt;/P&gt;
&lt;P&gt;I cannot get this visual to work. Has anyone an idea how to create such a correlation matrix?&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;To get the correlation between two specified questions, I can use the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;correl(
aggr(
Avg({&amp;lt;Question={'I like swimming'}&amp;gt;} Answer), RespondentID
),
aggr(
Avg({&amp;lt;Question={'I like running'}&amp;gt;} Answer), RespondentID
)
)&lt;/LI-CODE&gt;
&lt;P&gt;However, I am not succeeding in altering this measure so it creates a correlation matrix for multiple questions at once.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-correlation-matrix-from-single-dimension/m-p/2144735#M93143</guid>
      <dc:creator>ernstblaauw</dc:creator>
      <dc:date>2023-12-06T11:00:45Z</dc:date>
    </item>
  </channel>
</rss>

