<?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: Table or Pivot with dynamic columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013840#M943248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this method may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim1, Dim2, Dim3, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, AA, ABC, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, AB, DEF, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, AA, DEF, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, AB, ABC, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintain a separate list of Columns in Table2 (for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this as your calculated dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 4))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 5))&lt;/STRONG&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;&lt;P&gt;Create as many as you think you might need, but restrict them with a show hide condition, such as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111810_Capture.PNG" style="height: 306px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jan 2016 14:49:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-17T14:49:53Z</dc:date>
    <item>
      <title>Table or Pivot with dynamic columns</title>
      <link>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013839#M943247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a table or pivot which has a dynamic list of columns.&amp;nbsp; I'm connecting QV to a sharepoint list and if a new column is added to the list, I would like it to automatically appear on the dashboard.&amp;nbsp; I can get the data in script (as I am doing a Load * from..) but is there a way to make the columns dynamic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SharePoint file might have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstName,&lt;/P&gt;&lt;P&gt;Surname,&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if they add a new column like 'hair colour' to the list I would like my dashboard table to now show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstName&lt;/P&gt;&lt;P&gt;Surname&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Hair Colour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 01:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013839#M943247</guid>
      <dc:creator />
      <dc:date>2016-01-17T01:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table or Pivot with dynamic columns</title>
      <link>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013840#M943248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this method may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim1, Dim2, Dim3, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, AA, ABC, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, AB, DEF, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, AA, DEF, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, AB, ABC, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintain a separate list of Columns in Table2 (for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this as your calculated dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 4))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt;=$(=SubField(Concat(DISTINCT Column, '|'), '|', 5))&lt;/STRONG&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;&lt;P&gt;Create as many as you think you might need, but restrict them with a show hide condition, such as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Column) &amp;gt;= 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111810_Capture.PNG" style="height: 306px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 14:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013840#M943248</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-17T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table or Pivot with dynamic columns</title>
      <link>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013841#M943249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be only work if you used variables as dimension which grab the first, second ... column from a certain table and if there aren't enough columns the n-variables will be return an invalid value which could be catched in a dimension-condition. But do not recommend such (automatically) approach&amp;nbsp; - pivot-table are quite performance-intensive and shouldn't have a random number of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better are approaches like this: &lt;A href="https://community.qlik.com/docs/DOC-14284"&gt;User Controlled Charts In QlikView&lt;/A&gt; and if you looked here &lt;A href="/t5/forums/searchpage/tab/message?q=dynamic charts&amp;amp;type=document"&gt;https://community.qlik.com/search.jspa?q=dynamic+charts&amp;amp;type=document&lt;/A&gt; you will find many more ideas and solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 14:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-or-Pivot-with-dynamic-columns/m-p/1013841#M943249</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-17T14:54:58Z</dc:date>
    </item>
  </channel>
</rss>

