<?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 Crosstable for multiple column groups in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Crosstable-for-multiple-column-groups/m-p/1557054#M40554</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have data like this :&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8115iCDCED12E8E41863B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I would like to have it like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8116i2B7D69EBCBB48853/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will notice that the number after each category (eg. Colour1) signifies the row number on the order.&lt;/P&gt;&lt;P&gt;I have tried using crosstable, but I cannot seem to get it right. I will appreciate your help!&lt;/P&gt;&lt;P&gt;I will also add an Excel spreadsheet with the data.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 10:12:23 GMT</pubDate>
    <dc:creator>Edrean</dc:creator>
    <dc:date>2019-03-15T10:12:23Z</dc:date>
    <item>
      <title>Crosstable for multiple column groups</title>
      <link>https://community.qlik.com/t5/App-Development/Crosstable-for-multiple-column-groups/m-p/1557054#M40554</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have data like this :&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8115iCDCED12E8E41863B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I would like to have it like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8116i2B7D69EBCBB48853/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will notice that the number after each category (eg. Colour1) signifies the row number on the order.&lt;/P&gt;&lt;P&gt;I have tried using crosstable, but I cannot seem to get it right. I will appreciate your help!&lt;/P&gt;&lt;P&gt;I will also add an Excel spreadsheet with the data.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Crosstable-for-multiple-column-groups/m-p/1557054#M40554</guid>
      <dc:creator>Edrean</dc:creator>
      <dc:date>2019-03-15T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable for multiple column groups</title>
      <link>https://community.qlik.com/t5/App-Development/Crosstable-for-multiple-column-groups/m-p/1557259#M40568</link>
      <description>&lt;P&gt;Hi Edrean,&lt;/P&gt;&lt;P&gt;please try following script:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;TMP&lt;/STRONG&gt;:
&lt;STRONG&gt;LOAD&lt;/STRONG&gt;
	*
&lt;STRONG&gt;From&lt;/STRONG&gt; Your Excel;

&lt;STRONG&gt;Facts&lt;/STRONG&gt;:
&lt;STRONG&gt;LOAD&lt;/STRONG&gt;
	Null() as Type
&lt;STRONG&gt;AutoGenerate&lt;/STRONG&gt; 0;

&lt;STRONG&gt;For&lt;/STRONG&gt; i =1 to 3
	
	let vType = 'Type' &amp;amp; $(i);
	let vColour = 'Colour' &amp;amp; $(i);
	let vSize = 'Size' &amp;amp; $(i);
	let vQty = 'Qty' &amp;amp; $(i);

	Concatenate(Facts)
	&lt;STRONG&gt;LOAD&lt;/STRONG&gt;
		Date,	
		Client,	
		[Order no],	
		$(vType) as Type,
		$(vColour) as Colour,
		$(vSize) as Size,
		$(vQty) as Qty
	&lt;STRONG&gt;Resident&lt;/STRONG&gt; TMP
	&lt;STRONG&gt;where&lt;/STRONG&gt; len(trim($(vType))) &amp;gt; 0;
	
	vType = null();
	vColour = null();
	vSize = null();
	vQty = null();

next i;

Drop Tables TMP;&lt;/PRE&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-21 lia-quilt-column-right lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I hope I was able to help you. Best regards,&lt;/P&gt;&lt;P&gt;Marius.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Mar 2019 14:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Crosstable-for-multiple-column-groups/m-p/1557259#M40568</guid>
      <dc:creator>mhaferkamp</dc:creator>
      <dc:date>2019-03-15T14:50:09Z</dc:date>
    </item>
  </channel>
</rss>

