<?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 Convert 2 dimensional chart to crosstable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193340#M54648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah, thank you very much. I knew there must be an easy way of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 12:43:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-22T12:43:05Z</dc:date>
    <item>
      <title>Convert 2 dimensional chart to crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193338#M54646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a question regarding crosstables. I have searched the forums multiple times and have not found an answer to my question.&lt;BR /&gt;&lt;BR /&gt;Lets say that I have tree tables, two are fetched from my database the third one is an autogenerated date table.&lt;BR /&gt;&lt;BR /&gt;DateTable:&lt;BR /&gt;---------------------------&lt;BR /&gt;Date&lt;BR /&gt;2009-01-01&lt;BR /&gt;2009-01-02&lt;BR /&gt;2009-01-03&lt;BR /&gt;&lt;BR /&gt;ProjectTable:&lt;BR /&gt;---------------------------&lt;BR /&gt;ProjectId, ProjectName&lt;BR /&gt;1, P1&lt;BR /&gt;2, P2&lt;BR /&gt;&lt;BR /&gt;Tasks&lt;BR /&gt;--------------------------&lt;BR /&gt;TaskId, ProjectId, CreatedDate, ClosedDate&lt;BR /&gt;1,1,2009-01-01, null&lt;BR /&gt;2,1,2009-01-02, 2009-01-03&lt;BR /&gt;3,2,2009-01-01, 2009-01-02&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From these tables it is really easy to create a bar chart displaying the number of tasks created each day, grouped by project.&lt;BR /&gt;&lt;BR /&gt;Dimensions:&lt;BR /&gt;-------------------------&lt;BR /&gt;Date&lt;BR /&gt;ProjectName&lt;BR /&gt;&lt;BR /&gt;Expression:&lt;BR /&gt;-------------------------&lt;BR /&gt;Count(If(InDay(CreatedDate, Date, 0), TaskId, Null())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But it is also easy to create a line chart displaying the number of open tasks each day, grouped by project. The only thing I have to change is the expression.&lt;BR /&gt;&lt;BR /&gt;Dimensions:&lt;BR /&gt;-------------------------&lt;BR /&gt;Date&lt;BR /&gt;ProjectName&lt;BR /&gt;&lt;BR /&gt;Expression:&lt;BR /&gt;-------------------------&lt;BR /&gt;Count(If(CreatedDate &amp;lt;= Date AND (ClosedDate &amp;gt;= Date OR IsNull(ClosedDate)), TaskId, Null())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now I would like to transform my charts into crosstables that displays project names vertically and dates horizontally.&lt;BR /&gt;&lt;BR /&gt;P1 1 1 0&lt;BR /&gt;P2 1 0 0&lt;BR /&gt; 2009-01-01 2009-01-02 2009-01-03&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P1 1 2 1&lt;BR /&gt;P2 1 1 0&lt;BR /&gt; 2009-01-01 2009-01-02 2009-01-03&lt;BR /&gt;&lt;BR /&gt;(Maybe I got the values wrong!?!)&lt;BR /&gt;&lt;BR /&gt;My question is, if it is so easy to create charts, transform them into straight and pivot tables, why isn't as easy to create crosstables?&lt;BR /&gt;Can this be done? or do I have to transform my already existing data into a lot of pre-aggregated tables in the script?&lt;BR /&gt;If I have to do this, the flexibility of adding attributes into user-selectable listboxes disapears?&lt;/P&gt;&lt;P&gt;br&lt;BR /&gt;P-A Söderqvist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 03:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193338#M54646</guid>
      <dc:creator />
      <dc:date>2009-09-22T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Convert 2 dimensional chart to crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193339#M54647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If your chart is of type, pivot table, this can be done easily by clicking and dragging the date column to the top, where it will appear when dispalyed vertically.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193339#M54647</guid>
      <dc:creator />
      <dc:date>2009-09-22T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Convert 2 dimensional chart to crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193340#M54648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah, thank you very much. I knew there must be an easy way of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-2-dimensional-chart-to-crosstable/m-p/193340#M54648</guid>
      <dc:creator />
      <dc:date>2009-09-22T12:43:05Z</dc:date>
    </item>
  </channel>
</rss>

