<?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: Want to get columns to Rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611541#M445180</link>
    <description>&lt;P&gt;Try the below script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;LOAD *,RowNo() INLINE [&lt;BR /&gt;Business, Place, Metrics, Theme1, Volume1, Theme2, Volume2, Theme3, Volume3, Rational1, Rational2, Rational3&lt;BR /&gt;Business1, Place1, Metric1, BA, 10, Clean, 20, Receipt, 30, Test1, Test2, Test3&lt;BR /&gt;Business1, Place1, Metric1, Clear, 5, BA, 10, Non Receipt, 20, Test4, Test5, Test6&lt;BR /&gt;Business2, Place2, Metric2, BA, 50, Clean, 10, Receipt, 60, Test7, Test8, Test9&lt;BR /&gt;Business2, Place2, Metric2, Clear, 20, BA, 30, Non Receipt, 30, Test10, Test11, Test12&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme1 as Theme,&lt;BR /&gt;Volume1 as Volume,&lt;BR /&gt;Rational1 as Rational&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;concatenate (Temp)&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme2 as Theme,&lt;BR /&gt;Volume2 as Volume,&lt;BR /&gt;Rational2 as Rational Resident Test;&lt;/P&gt;&lt;P&gt;concatenate (Temp)&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme3 as Theme,&lt;BR /&gt;Volume3 as Volume,&lt;BR /&gt;Rational3 as Rational&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;Drop Table Test;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exit SCRIPT;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 12:21:59 GMT</pubDate>
    <dc:creator>techvarun</dc:creator>
    <dc:date>2019-08-12T12:21:59Z</dc:date>
    <item>
      <title>Want to get columns to Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611520#M445178</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am looking for a solution in which I have data in different columns and I want to get the data in different columns under one column.&lt;/P&gt;&lt;P&gt;PFA with the sample data on which I am currently working on.Name of the qvw is CommentryTest.&lt;/P&gt;&lt;P&gt;The output I am looking for is attached in excel. Name of the excel CommentryOutput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611520#M445178</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2024-11-16T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Want to get columns to Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611537#M445179</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
CrossTable (Field, Value, 4)
LOAD RowNo() as RowNum, * INLINE [
    Business, Place, Metrics, Theme1, Volume1, Theme2, Volume2, Theme3, Volume3, Rational1, Rational2, Rational3
    Business1, Place1, Metric1, BA, 10, Clean, 20, Receipt, 30, Test1, Test2, Test3
    Business1, Place1, Metric1, Clear, 5, BA, 10, Non Receipt, 20, Test4, Test5, Test6
    Business2, Place2, Metric2, BA, 50, Clean, 10, Receipt, 60, Test7, Test8, Test9
    Business2, Place2, Metric2, Clear, 20, BA, 30, Non Receipt, 30, Test10, Test11, Test12
];

tmpTable:
LOAD *,
	 PurgeChar(Field, '0123456789') as TruncField,
	 KeepChar(Field, '0123456789') as FieldNum
Resident Table;

DROP Table Table;

FinalTable:
LOAD Distinct
	 RowNum,
	 Business,
	 Place,
	 Metrics,
	 FieldNum
Resident tmpTable;

FOR i = 1 to FieldValueCount('TruncField')

	LET vField = FieldValue('TruncField', $(i));
	TRACE $(vField);
	
	Left Join (FinalTable)
	LOAD Distinct
		 RowNum,
		 Business,
		 Place,
		 Metrics,
		 FieldNum,
		 Value as [$(vField)1]
	Resident tmpTable
	Where TruncField = '$(vField)';
	
NEXT

DROP Table tmpTable;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Aug 2019 12:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611537#M445179</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-12T12:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Want to get columns to Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611541#M445180</link>
      <description>&lt;P&gt;Try the below script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;LOAD *,RowNo() INLINE [&lt;BR /&gt;Business, Place, Metrics, Theme1, Volume1, Theme2, Volume2, Theme3, Volume3, Rational1, Rational2, Rational3&lt;BR /&gt;Business1, Place1, Metric1, BA, 10, Clean, 20, Receipt, 30, Test1, Test2, Test3&lt;BR /&gt;Business1, Place1, Metric1, Clear, 5, BA, 10, Non Receipt, 20, Test4, Test5, Test6&lt;BR /&gt;Business2, Place2, Metric2, BA, 50, Clean, 10, Receipt, 60, Test7, Test8, Test9&lt;BR /&gt;Business2, Place2, Metric2, Clear, 20, BA, 30, Non Receipt, 30, Test10, Test11, Test12&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme1 as Theme,&lt;BR /&gt;Volume1 as Volume,&lt;BR /&gt;Rational1 as Rational&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;concatenate (Temp)&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme2 as Theme,&lt;BR /&gt;Volume2 as Volume,&lt;BR /&gt;Rational2 as Rational Resident Test;&lt;/P&gt;&lt;P&gt;concatenate (Temp)&lt;BR /&gt;Load&lt;BR /&gt;Business,&lt;BR /&gt;Place,&lt;BR /&gt;Metrics,&lt;BR /&gt;//Volume,&lt;BR /&gt;Theme3 as Theme,&lt;BR /&gt;Volume3 as Volume,&lt;BR /&gt;Rational3 as Rational&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;Drop Table Test;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exit SCRIPT;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 12:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-get-columns-to-Rows/m-p/1611541#M445180</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2019-08-12T12:21:59Z</dc:date>
    </item>
  </channel>
</rss>

