<?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: A few bivalent nominal variables into one dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777504#M472915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Przemyslav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend split the table into two tables and joining them on ID.&amp;nbsp; One table, I've called People and the other I've call InfoSource.&amp;nbsp; I've also done a mapping to convert the numeric representation of gender to words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script I used and I've also attached the data and QVF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make this response and helpful or correct if applicable to help out other member when search for answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Internet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leaflet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P&gt;FROM [lib://Desktop/Data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Map Sex from numbers to Man or Woman&lt;/P&gt;&lt;P&gt;SexMap:&lt;/P&gt;&lt;P&gt;Mapping Load * inline [&lt;/P&gt;&lt;P&gt;SexID, Sex&lt;/P&gt;&lt;P&gt;1, Female&lt;/P&gt;&lt;P&gt;2, Male&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ('SexMap',Sex) as Gender&lt;/P&gt;&lt;P&gt;Resident TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData2:&lt;/P&gt;&lt;P&gt;CrossTable([Information Source], Data, 1)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Internet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leaflet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Friend&lt;/P&gt;&lt;P&gt;Resident TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InfoSource:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;[Information Source]&lt;/P&gt;&lt;P&gt;Resident TempData2&lt;/P&gt;&lt;P&gt;Where Data = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 17:34:15 GMT</pubDate>
    <dc:creator>Josh_Good</dc:creator>
    <dc:date>2014-12-05T17:34:15Z</dc:date>
    <item>
      <title>A few bivalent nominal variables into one dimension</title>
      <link>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777503#M472914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to work on Qlik Sense with data coded like that:&lt;/P&gt;&lt;P&gt;(variables [internet; leaflet; friend; sex] in bivalent nominal scales)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Nowy obraz.bmp" class="jive-image" height="302" src="/legacyfs/online/72766_Nowy obraz.bmp" style="height: 302px; width: 338.671428571429px;" width="339" /&gt;&lt;/P&gt;&lt;P&gt;and generate in QlikSense sheet charts like these below, &lt;SPAN style="text-decoration: underline;"&gt;cooperating&lt;/SPAN&gt; each other (I mean interacting like it is beetwen charts in QS demo app's):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="wykres.bmp" class="jive-image" height="251" src="https://community.qlik.com/legacyfs/online/72767_wykres.bmp" style="width: 364.529230769231px; height: 251px;" width="365" /&gt;&lt;IMG alt="wykres2.bmp" class="jive-image" height="271" src="https://community.qlik.com/legacyfs/online/72768_wykres2.bmp" style="width: 278.016181229773px; height: 271px;" width="278" /&gt;&lt;/P&gt;&lt;P&gt;In other words, is this possible to turn the variables [internet; leaflet; friend] into one &lt;EM&gt;dimension&lt;/EM&gt; [eg. info source] and take their average value as a &lt;EM&gt;measure, &lt;/EM&gt;and at the same time, be able to categorize this comparision by the [sex] variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, hope I'm not confusing and the question is interesting. I'm a beginer in data mining but I'm open to every solution - even the most mysterious script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Przemyslav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 20:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777503#M472914</guid>
      <dc:creator />
      <dc:date>2014-12-04T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: A few bivalent nominal variables into one dimension</title>
      <link>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777504#M472915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Przemyslav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend split the table into two tables and joining them on ID.&amp;nbsp; One table, I've called People and the other I've call InfoSource.&amp;nbsp; I've also done a mapping to convert the numeric representation of gender to words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script I used and I've also attached the data and QVF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make this response and helpful or correct if applicable to help out other member when search for answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Internet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leaflet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P&gt;FROM [lib://Desktop/Data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Map Sex from numbers to Man or Woman&lt;/P&gt;&lt;P&gt;SexMap:&lt;/P&gt;&lt;P&gt;Mapping Load * inline [&lt;/P&gt;&lt;P&gt;SexID, Sex&lt;/P&gt;&lt;P&gt;1, Female&lt;/P&gt;&lt;P&gt;2, Male&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap ('SexMap',Sex) as Gender&lt;/P&gt;&lt;P&gt;Resident TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData2:&lt;/P&gt;&lt;P&gt;CrossTable([Information Source], Data, 1)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Internet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leaflet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Friend&lt;/P&gt;&lt;P&gt;Resident TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InfoSource:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;[Information Source]&lt;/P&gt;&lt;P&gt;Resident TempData2&lt;/P&gt;&lt;P&gt;Where Data = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 17:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777504#M472915</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-12-05T17:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: A few bivalent nominal variables into one dimension</title>
      <link>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777505#M472916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;It works, indeed! Thank you very much!&lt;/P&gt;&lt;P&gt;Look for me while be in Poland.&lt;/P&gt;&lt;P&gt;You have a beer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 11:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-few-bivalent-nominal-variables-into-one-dimension/m-p/777505#M472916</guid>
      <dc:creator />
      <dc:date>2014-12-06T11:54:27Z</dc:date>
    </item>
  </channel>
</rss>

