<?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 make a transformation after CrossTable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132188#M756415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not unusual to load the raw data first and then your cleaned data in a new table, especially if you don't need to keep your 'dirty' data. In your small example you do however with the load *, resident. raw. So don't use load * for your resident load. Alternatively you can use something like the below without having to drop a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(QID, Answer,7) Load*,if(Q8&amp;gt;0,Q64) as Q64_new&lt;/P&gt;&lt;P&gt;,if(Q8&amp;gt;0 and Q64=1,if(Q8=1 and Q64=1,1,2)) as Q8_Q64&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;FROM [lib://results/survey.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;(ooxml, embedded labels, table is answers);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 15:42:26 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2018-09-18T15:42:26Z</dc:date>
    <item>
      <title>How to make a transformation after CrossTable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132184#M756411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I happily found &lt;CODE&gt;CrossTable&lt;/CODE&gt; in Qlik Sense and used it to straighten a dataset containing answers to a survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several instances of dirty data in the set, which I'd want to clean up after &lt;CODE&gt;CrossTable&lt;/CODE&gt; did its magic. They include mappings, &lt;CODE&gt;if&lt;/CODE&gt; statements and the like. I couldn't find a way to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, I could repeat all my cleaning on every column, but they are many (about a hundred) and I'll have to do this seven more times for more surveys, with even more to come. Copying all the cleaning code hundreds of times sounds like it is a nightmare, especially if I need to change it somehow later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132184#M756411</guid>
      <dc:creator>michele_nesci</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a transformation after CrossTable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132185#M756412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your table look like after the crosstable and which kind of data should be cleaned/replaced with what? Usually a few statements mostly mappings should be sufficient to correct your data.&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, 17 Sep 2018 14:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132185#M756412</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-17T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a transformation after CrossTable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132186#M756413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply. I have no problem with writing the statements as is. Mostly I have to trim text and convert numeric results to numbers. The problem is that I see no place to plug a formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132186#M756413</guid>
      <dc:creator>michele_nesci</dc:creator>
      <dc:date>2018-09-18T07:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a transformation after CrossTable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132187#M756414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a workaround: load the cross table as is, then use it to generate a new table with all modifications and finally drop the first one. A minimal example:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;[Survey_raw]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CrossTable(Question,Answer_raw)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [lib://results/survey.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;(ooxml, embedded labels, table is answers);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;[Survey]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num#(Answer_raw) as Answer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;Resident [Survey_raw];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;Drop Table Survey_raw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Is there a better way? Having to drop the table is a bit of a code smell.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132187#M756414</guid>
      <dc:creator>michele_nesci</dc:creator>
      <dc:date>2018-09-18T07:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a transformation after CrossTable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132188#M756415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not unusual to load the raw data first and then your cleaned data in a new table, especially if you don't need to keep your 'dirty' data. In your small example you do however with the load *, resident. raw. So don't use load * for your resident load. Alternatively you can use something like the below without having to drop a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(QID, Answer,7) Load*,if(Q8&amp;gt;0,Q64) as Q64_new&lt;/P&gt;&lt;P&gt;,if(Q8&amp;gt;0 and Q64=1,if(Q8=1 and Q64=1,1,2)) as Q8_Q64&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;FROM [lib://results/survey.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;(ooxml, embedded labels, table is answers);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 15:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-transformation-after-CrossTable/m-p/132188#M756415</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-09-18T15:42:26Z</dc:date>
    </item>
  </channel>
</rss>

