<?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: Line chart with multiple dimensions from different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496593#M552280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a field identifying each of the 3 different objects,&lt;/P&gt;&lt;P&gt;then you can add 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-if(id=1,count(records))&lt;/P&gt;&lt;P&gt;-if(id=2,count(records))&lt;/P&gt;&lt;P&gt;if(id=3,count(records))&lt;/P&gt;&lt;P&gt;where records would be your primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with date as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would give you 3 different trend lines on the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 10:07:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-21T10:07:01Z</dc:date>
    <item>
      <title>Line chart with multiple dimensions from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496591#M552278</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 am trying to create a line chart showing the number of active objects over a period of time. I have three fact tables describing different objects, each of which have a valid from and valid to dates defining the objects lifespan.&lt;/P&gt;&lt;P&gt;To create a line chart showing the number of objects that are active from my valid from/to dates, during the load I create a table with the unique identifier for the object and a date entry for every date in between the valid from and valid to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;t_task_active_dates:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as ID,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key_task_identifier,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(t_task.ValidFrom + IterNo() - 1) as ActiveDate&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident t_task&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;While IterNo() &amp;lt;= (t_task.ValidTo - t_task_ValidFrom + 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create the line chart I would then use the &lt;SPAN style="font-family: courier new,courier;"&gt;ActiveDate&lt;/SPAN&gt; field as the Dimension and &lt;SPAN style="font-family: courier new,courier;"&gt;Count(t_task_active_dates.ID)&lt;/SPAN&gt; as the Expression, which gives me a line chart with the correct values. I start having problems when I try to include the number of active objects for the other two fact tables. I can produce the tables exactly the same way, but if I add another Dimension and Expression for the next object then the values that are displayed on the chart are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering whether anyone had any suggestions on how I may be able to show these three lines on the same chart while still getting the correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help/advice in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 09:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496591#M552278</guid>
      <dc:creator />
      <dc:date>2013-10-21T09:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart with multiple dimensions from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496592#M552279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try creating three charts and put them on top of each other. Or you can try concatenating your fact tables. Or you can create a data island that contains only the object id's and the dates and make sure that table is not linked to any other table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 09:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496592#M552279</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-21T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart with multiple dimensions from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496593#M552280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a field identifying each of the 3 different objects,&lt;/P&gt;&lt;P&gt;then you can add 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-if(id=1,count(records))&lt;/P&gt;&lt;P&gt;-if(id=2,count(records))&lt;/P&gt;&lt;P&gt;if(id=3,count(records))&lt;/P&gt;&lt;P&gt;where records would be your primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with date as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would give you 3 different trend lines on the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-multiple-dimensions-from-different-tables/m-p/496593#M552280</guid>
      <dc:creator />
      <dc:date>2013-10-21T10:07:01Z</dc:date>
    </item>
  </channel>
</rss>

