<?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, 2 dimensions, 2 expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334272#M576249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain me better, what do you mean for "common date"?&lt;/P&gt;&lt;P&gt;Common date is a copy of "date_measured"?&lt;/P&gt;&lt;P&gt;The calendardate should be linked to "date_measured""?&lt;/P&gt;&lt;P&gt;I added some more explanation above about dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 15:55:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-03T15:55:22Z</dc:date>
    <item>
      <title>Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334268#M576245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a QlikView newbie and I've been trying to solve a problem...without any luck.&lt;/P&gt;&lt;P&gt;I have a line chart with 2 expressions showing respectively the expected amount of rainfall per day, and the real (measured) amount of rainfall per day.&lt;/P&gt;&lt;P&gt;I can correctly see just one of the two expressions at a time depending on which dimension I use.&lt;/P&gt;&lt;P&gt;If I use dimension called "date_expected", I can correctly see the line chart with expression = "expected_values"&lt;/P&gt;&lt;P&gt;If I use dimension called "date_measured", I can correctly see the line chart with expression = ''measured_values"&lt;/P&gt;&lt;P&gt;If I use both dimenions, on the graph one line is correct but the other is not.&lt;/P&gt;&lt;P&gt;In the attached image I used both dimensions (date_expected on top), as you can see from the last chart the measured_values are not correctly shown.&lt;/P&gt;&lt;P&gt;What I want is to (simply...) merge the first 2 graphs in one chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rainfall.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/13759_rainfall.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334268#M576245</guid>
      <dc:creator />
      <dc:date>2012-05-03T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334269#M576246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need to use a calendar with either a new table for measured with the dates linked to a common date, &lt;/P&gt;&lt;P&gt;or the slower option of leaving the calendar unlinked and using an if statement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measured:&lt;/P&gt;&lt;P&gt;sum(if(date_measured=calendardate,measuredamount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334269#M576246</guid>
      <dc:creator />
      <dc:date>2012-05-03T13:20:32Z</dc:date>
    </item>
    <item>
      <title>Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334270#M576247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michel, simplest way to do this, just have a single date field on the model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334270#M576247</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2012-05-03T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334271#M576248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I give you more in details&lt;/P&gt;&lt;P&gt;I fetch the data (expected and measured) from 2 different databases. &lt;/P&gt;&lt;P&gt;The column "data_measured" looks like this:&lt;/P&gt;&lt;P&gt;12.04.2012 09:15&lt;/P&gt;&lt;P&gt;12.04.2012 09:30&lt;/P&gt;&lt;P&gt;12.04.2012 09:45&lt;/P&gt;&lt;P&gt;12.04.2012 10:00...&lt;/P&gt;&lt;P&gt;Every 15 minutes there is a new measure. I group together these measures in two groups: amount of rain from midnight till noon and amount of rain from noon till midnight (for each day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column "data_expected" looks like this:&lt;/P&gt;&lt;P&gt;12.04.2012 00:00&lt;/P&gt;&lt;P&gt;12.04.2012 12:00&lt;/P&gt;&lt;P&gt;13.04.2012 00:00&lt;/P&gt;&lt;P&gt;13.04.2012 12:00...&lt;/P&gt;&lt;P&gt;Here we have 2 measures per day (each measure matches the two time slot mentioned above, midnight-noon, noon-midnight), so e.g. 12.04.2012 00:00 refers to the amount of rain between midnight and noon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the column "date" of measured_values as dimension for the expected_values I don't get a correct chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334271#M576248</guid>
      <dc:creator />
      <dc:date>2012-05-03T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334272#M576249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain me better, what do you mean for "common date"?&lt;/P&gt;&lt;P&gt;Common date is a copy of "date_measured"?&lt;/P&gt;&lt;P&gt;The calendardate should be linked to "date_measured""?&lt;/P&gt;&lt;P&gt;I added some more explanation above about dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 15:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334272#M576249</guid>
      <dc:creator />
      <dc:date>2012-05-03T15:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334273#M576250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these 2 databases combined into one table in the script? Will the date measured and date expected be linkable? If the below is hard to understand can you post a copy of your script?&lt;/P&gt;&lt;P&gt;Measured Table:&lt;/P&gt;&lt;P&gt;date(datemeasured) as Datelink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Table:&lt;/P&gt;&lt;P&gt;date(dateexpected) as Datelink.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 16:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334273#M576250</guid>
      <dc:creator />
      <dc:date>2012-05-03T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334274#M576251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, first you need link the 2 date fields, in this case only put the field date (containing values from date_measured and date_expected) as dimension.&lt;/P&gt;&lt;P&gt;Later use your 2 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(expected_values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(measured_values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my bad english.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 16:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334274#M576251</guid>
      <dc:creator />
      <dc:date>2012-05-03T16:34:15Z</dc:date>
    </item>
    <item>
      <title>Line chart, 2 dimensions, 2 expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334275#M576252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I linked the two data fields together as you can see from the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 08:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-2-dimensions-2-expressions/m-p/334275#M576252</guid>
      <dc:creator />
      <dc:date>2012-05-04T08:18:45Z</dc:date>
    </item>
  </channel>
</rss>

