<?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: Different dates over the same dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216649#M389598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies, it seems to confirm my own findings that it's not really possible to do it the way I would want. I'm looking into ways to change my data model or simple a different frontend design to present the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 06:28:14 GMT</pubDate>
    <dc:creator>dahpet03</dc:creator>
    <dc:date>2017-03-17T06:28:14Z</dc:date>
    <item>
      <title>Different dates over the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216646#M389595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my data model there are two different types of cases (actually there's more but that's not really relevant right now). We can call them incidents and change requests. There are times when these different cases are connected to eachother and this connection is represented in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to have a line chart in which I plot incidents over their reported date and then have a second line in the same chart for the connected change requests. The problem is that the change requests uses a different date dimension, let's call it the submit date. So, my question is if there's a way to do this without making changes to the data model. I have a canonical date in the data model that would obviously work but that compromises the users ability to make selections to the relevant dates more than I would like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried everything I can think of when it comes to set analysis but I'm starting to think that's it's simply not possible to achieve without resorting to the use of a canonical date or some other redesign in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone here have some clever technique that might do the trick? Did I even manage to explain my problem so you can understand it? I'm afraid I'm not in a position to give you any sample data at the moment but all help is appreciated, even if it's just to confirm that it indeed is impossible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 21:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216646#M389595</guid>
      <dc:creator>dahpet03</dc:creator>
      <dc:date>2017-03-15T21:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different dates over the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216647#M389596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would try to use the canonical date as dimension and connecting it within the expression in a set analysis with other selections, I mean for example something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; CanonicalDate = p(Date) &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby it will be probably more complex with something like: p({&amp;lt; Field1 = p(Field2)&amp;gt;} Date) and you might need further to add a modificator or operator to the various parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this in the end will be more easier and understandable I'm not sure - maybe it's more suitable to prevent false selections by using this in a separate sheet with only appropriate selection-fields and/or alternate states and/or using selection-actions by activate/deactivate this sheet or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 08:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216647#M389596</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-16T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Different dates over the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216648#M389597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think that you'll be able to achive a chart where time is dimention without canonical calendar or other data model modifications.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've had similar problem during preparation of report from atlassian jira app. The solution was similar to below sample:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;incidents:
load * inline [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"incidentID", "incidentKey", "incidentCreateDate"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1, "key-1", "2017-01-01"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2, "key-2", "2017-01-02"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3, "key-3", "2017-01-03"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4, "key-4", "2017-01-03"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5, "key-5", "2017-01-03"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6, "key-6", "2017-01-06"
];

Concatenate(incidents)
load * inline [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"crID", "incidentID", "crCreateDate"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1, 1, "2017-01-02"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2, 1, "2017-01-03"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3, 2, "2017-01-04"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4, 1, "2017-01-04"
];


cal:
load
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;min(incidentCreateDate) as minIncidentCreateDate,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;max(incidentCreateDate) as maxIncidentCreateDate
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, max(crCreateDate) as maxCrCreateDate
Resident
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;incidents
;

let vMinDate = peek('minIncidentCreateDate', 0,'cal');
let vMaxDateInc = peek('maxIncidentCreateDate', '0', 'cal');
let vMaxDateCr = peek('maxCrCreateDate', '0', 'cal');

let vMaxDate = if($(vMaxDateInc) &amp;gt; $(vMaxDateCr), $(vMaxDateInc), $(vMaxDateCr));

drop table cal;

let vDiff = $(vMaxDate) - $(vMinDate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
for i=0 to '$(vDiff)'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GlobalCalendar:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;load
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;date($(vMinDate)+$(i), 'YYYY-MM-DD') as globalCalendarDate
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AutoGenerate(1);
next i;


NoConcatenate
incidentsTmp:
load
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, if(not isNull(crCreateDate), date(crCreateDate, 'YYYY-MM-DD'), date(incidentCreateDate)) as globalCreateDate
Resident incidents;

drop table incidents;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 09:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216648#M389597</guid>
      <dc:creator>mfchmielowski</dc:creator>
      <dc:date>2017-03-16T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Different dates over the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216649#M389598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies, it seems to confirm my own findings that it's not really possible to do it the way I would want. I'm looking into ways to change my data model or simple a different frontend design to present the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 06:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-dates-over-the-same-dimension/m-p/1216649#M389598</guid>
      <dc:creator>dahpet03</dc:creator>
      <dc:date>2017-03-17T06:28:14Z</dc:date>
    </item>
  </channel>
</rss>

