<?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: Hints on how to solve entry/exit problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913848#M317000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I order to 'explode' the date I would&lt;/P&gt;&lt;P&gt;1. Load the full data set&lt;/P&gt;&lt;P&gt;LOAD Entrydate AS Date, Type, 'Entry' AS RecordType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Load only Exits&lt;/P&gt;&lt;P&gt;CONCATENATE LOAD Exitdate AS Date, Type, 'Exit' AS RecordType&lt;/P&gt;&lt;P&gt;WHERE Exitdate is not null()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a common Date dimension, and you can use the new RecordType in the set analysis&lt;/P&gt;&lt;P&gt;e.g. Count ({$&amp;lt;RecordType = {'Exit'} &amp;gt;} Type) to count exits on the Date dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 12:58:11 GMT</pubDate>
    <dc:creator>jfkinspari</dc:creator>
    <dc:date>2015-07-24T12:58:11Z</dc:date>
    <item>
      <title>Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913844#M316996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to built two charts : &lt;/P&gt;&lt;P&gt;1) a bar chart showing the evolution over time of "incident tickets" entries and "incident tickets" exits&lt;/P&gt;&lt;P&gt;2) a bar chart showing the evolution over time of the amount of unsolved "incident tickets" (unsolved meaning "entry date"&amp;nbsp; &amp;lt;=&amp;nbsp; date and "exit date" &amp;gt; date&lt;/P&gt;&lt;P&gt;Of course "incident tickets" have many attributes and I want to be able to filter on those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume my entry data looks like this (I could have one file per day for instance, in which case my data would have an additional column for the exportdate)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Entry Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Exit Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt; Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Bug&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Bug&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Bug&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11/07/2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Bug&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have this for evolution over time for entries/exits&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Evolution EntriesExit.JPG" class="jive-image image-1" src="/legacyfs/online/93871_Evolution EntriesExit.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;this for evolution over time for entries/exits for type bug&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/93893_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this for evolution of amount of unsolved&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/93895_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many directions but always get blocked either by losing filtering capability, or ending up with a somehow messy data model.&lt;/P&gt;&lt;P&gt;Any hint would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 11:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913844#M316996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913845#M316997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to make chart 1), I would explode the data, so you get 1 record for the entry and 1 record for the eventual exit. The records can then share a date dimension, which you can use for the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart 2): Does that count the accumulative number of open incidents? Or is the incident only counted on the date of the entry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 11:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913845#M316997</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2015-07-24T11:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913846#M316998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 1) how do you "explode" the data?&lt;/P&gt;&lt;P&gt;I went that way by loading the data twice:&lt;/P&gt;&lt;P&gt;-first the full table (qualified) leaving the "Entry date" as the shared dimension.&lt;/P&gt;&lt;P&gt;-second just a smaller table with the id and the Exit date as the shared dimension.&lt;/P&gt;&lt;P&gt;It works but I cannot filter anymore by type for the exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then loaded the full table twice with the shared date dimension being once fhe entry date and the other time the exit date, but by doing that the data model looks messy as the shared column is now a big aggregated of all fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2) yes it is the cumulative amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913846#M316998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913847#M316999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would start with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14377422954779830" jivemacro_uid="_14377422954779830"&gt;
&lt;P&gt;SET DateFormat = 'DD/MM/YYYY';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INCIDENTS:&lt;/P&gt;
&lt;P&gt;LOAD ID, [Entry Date], [Exit Date], Type, if(len(trim([Exit Date]))=0, today(), [Exit Date]) as [Exit2] INLINE [&lt;/P&gt;
&lt;P&gt;ID, Entry Date, Exit Date, Type&lt;/P&gt;
&lt;P&gt;1, 10/07/2015, 10/07/2015, Bug&lt;/P&gt;
&lt;P&gt;2, 10/07/2015, 10/07/2015, Info&lt;/P&gt;
&lt;P&gt;3, 10/07/2015, 11/07/2015, Bug&lt;/P&gt;
&lt;P&gt;4, 11/07/2015, ,Info&lt;/P&gt;
&lt;P&gt;5, 11/07/2015, 11/07/2015, Bug&lt;/P&gt;
&lt;P&gt;6, 11/07/2015, 11/07/2015, Info&lt;/P&gt;
&lt;P&gt;7, 11/07/2015, ,Bug&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD ID, Date([Entry Date]+ iterno()-1) as UnresolvedDate&lt;/P&gt;
&lt;P&gt;RESIDENT INCIDENTS&lt;/P&gt;
&lt;P&gt;WHILE [Entry Date]+ iterno()-1 &amp;lt; [Exit2];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CrossTable (DateType, Date, 2 )&lt;/P&gt;
&lt;P&gt;LOAD ID, Type, [Entry Date], [Exit Date]&lt;/P&gt;
&lt;P&gt;RESIDENT INCIDENTS;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop table INCIDENTS;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create two tables linked by ID (one can also think about force-concatenating these two tables and having one common Date field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two charts can be build by using &lt;EM&gt;Date&lt;/EM&gt; and &lt;EM&gt;DateType&lt;/EM&gt; as dimensions and&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(DISTINCT ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;resp.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count({&amp;lt;Type = {Bug}&amp;gt;} DISTIINCT ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last chart can be created using &lt;EM&gt;UnresolvedDate&lt;/EM&gt; as dimension, and&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913847#M316999</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-24T12:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913848#M317000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I order to 'explode' the date I would&lt;/P&gt;&lt;P&gt;1. Load the full data set&lt;/P&gt;&lt;P&gt;LOAD Entrydate AS Date, Type, 'Entry' AS RecordType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Load only Exits&lt;/P&gt;&lt;P&gt;CONCATENATE LOAD Exitdate AS Date, Type, 'Exit' AS RecordType&lt;/P&gt;&lt;P&gt;WHERE Exitdate is not null()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a common Date dimension, and you can use the new RecordType in the set analysis&lt;/P&gt;&lt;P&gt;e.g. Count ({$&amp;lt;RecordType = {'Exit'} &amp;gt;} Type) to count exits on the Date dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913848#M317000</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2015-07-24T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913849#M317001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok this works and is crystal clear! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913849#M317001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913850#M317002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went for Jens Frederik's solution as it was closer to my existing code. But I will try this one too as it uses a different approach and elements I have never used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913850#M317002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T15:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hints on how to solve entry/exit problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913851#M317003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, loading the data twice, once for Entry and once for Exit record set, creating a common Date field is doing the same as the CROSSTABLE LOAD (lines 23 to 25) in my sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How have you created the evolution of unsolved with that solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 08:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hints-on-how-to-solve-entry-exit-problem/m-p/913851#M317003</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-25T08:00:35Z</dc:date>
    </item>
  </channel>
</rss>

