<?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 Point in time analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Point-in-time-analysis/m-p/630466#M543559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've four variables with this definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) vDateTo ... selected from a calendar object&lt;/P&gt;&lt;P&gt;2) vDateFrom ... selected from a calendar object&lt;/P&gt;&lt;P&gt;3) vDateToPrev&amp;nbsp; = vDateFrom - (vDateTo - vDateFrom) - 1&lt;/P&gt;&lt;P&gt;4) vDateFromPrev = vDateTo - (vDateTo - vDateFrom) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: two periods with the same number of days each one, the selected from calendar and the previous calculated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also two Line Chart with an expression each one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 'Current Expression' sum( {&amp;lt; Database.Date={"&amp;gt;=$(vDateFrom)&amp;lt;=$(vDateTo)"} &amp;gt;} Sessions)&lt;/P&gt;&lt;P&gt;2) 'Previous Expression' sum( {&amp;lt; Database.Date={"&amp;gt;=$(vDateFromPrev)&amp;lt;=$(vDateToPrev)"} &amp;gt;} Sessions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With two graphics all works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ... The request and the challenge that I have is to show ONE line chart with two expressions, but if I write these two expressions I see at left the Prev and at right the Current.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is Database.Date, how can I create a chart that shows this two expressions in one overlayed time dimension ... as this example does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="58742" alt="1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/58742_1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joaquín&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 06:51:16 GMT</pubDate>
    <dc:creator>Joaquin_Lazaro</dc:creator>
    <dc:date>2014-05-13T06:51:16Z</dc:date>
    <item>
      <title>Point in time analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Point-in-time-analysis/m-p/630466#M543559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've four variables with this definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) vDateTo ... selected from a calendar object&lt;/P&gt;&lt;P&gt;2) vDateFrom ... selected from a calendar object&lt;/P&gt;&lt;P&gt;3) vDateToPrev&amp;nbsp; = vDateFrom - (vDateTo - vDateFrom) - 1&lt;/P&gt;&lt;P&gt;4) vDateFromPrev = vDateTo - (vDateTo - vDateFrom) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: two periods with the same number of days each one, the selected from calendar and the previous calculated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also two Line Chart with an expression each one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 'Current Expression' sum( {&amp;lt; Database.Date={"&amp;gt;=$(vDateFrom)&amp;lt;=$(vDateTo)"} &amp;gt;} Sessions)&lt;/P&gt;&lt;P&gt;2) 'Previous Expression' sum( {&amp;lt; Database.Date={"&amp;gt;=$(vDateFromPrev)&amp;lt;=$(vDateToPrev)"} &amp;gt;} Sessions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With two graphics all works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ... The request and the challenge that I have is to show ONE line chart with two expressions, but if I write these two expressions I see at left the Prev and at right the Current.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is Database.Date, how can I create a chart that shows this two expressions in one overlayed time dimension ... as this example does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="58742" alt="1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/58742_1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joaquín&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 06:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-in-time-analysis/m-p/630466#M543559</guid>
      <dc:creator>Joaquin_Lazaro</dc:creator>
      <dc:date>2014-05-13T06:51:16Z</dc:date>
    </item>
  </channel>
</rss>

