<?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: Issue in calculating Turn for multiple dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851678#M469531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I attached the sample source data and QV app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 12:03:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-30T12:03:32Z</dc:date>
    <item>
      <title>Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851676#M469529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an issue in calculating the turn for two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have a field Date1, Date2 where the turn should be calucated for Date1 and Date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 308px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Order No&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Iteration&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Start&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;End&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Turn&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;123&lt;/TD&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Iteration1&lt;/TD&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;23/06/2015 15:42:46&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;24/06/2015 09:11:33&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;&lt;P&gt;=networkdays(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;23/06/2015,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;24/06/2015)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;123&lt;/TD&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Iteration 2&lt;/TD&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;24/06/2015 09:18:23&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;24/06/2015 18:29:17&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;&lt;P&gt;--Turn 2&lt;/P&gt;&lt;P&gt;=1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;123&lt;/TD&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Iteratin 3&lt;/TD&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;26/06/2015 11:28:08&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;26/06/2015 14:08:18&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;&lt;P&gt;--Turn 3&lt;/P&gt;&lt;P&gt;=1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;123&lt;/TD&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Iteration 4&lt;/TD&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;26/06/2015 14:36:12&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;26/06/2015 16:35:54&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;&lt;P&gt;--Turn 4&lt;/P&gt;&lt;P&gt;=1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Average&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;=Average(2,1,1,1)=1.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Start Date and End Date comes from different tables based on Primary Key and iteration is what I added for better understanding of my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to calculate the turn at every iteration based on the Order No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to join these two fields with the Order No, it is doing cross join and populating 16 combinations and the turn metric is being calculated wrongly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wanted help on how to deal with such scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final I want to see turn as 1.25 for the Order 123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 10:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851676#M469529</guid>
      <dc:creator />
      <dc:date>2015-06-30T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851677#M469530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851677#M469530</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-30T11:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851678#M469531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I attached the sample source data and QV app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851678#M469531</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851679#M469532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me out in this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851679#M469532</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851680#M469533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a straight table, not a text box, and enter an expression along the lines as the ones above, Sum(End - Start)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851680#M469533</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851681#M469534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But that is not working, however I need the turn for every iteration it travels that phases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851681#M469534</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851682#M469535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this: &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OrderNumber]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[End-Start]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851682#M469535</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851683#M469536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want is not possible. There is not enough information to determine which startdate belongs to which enddate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851683#M469536</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-30T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851684#M469537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, when I load it it is doing n*n mappping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the right combinations are the ones which I posted in the Sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to align it in this way and find the turn for it. &lt;/P&gt;&lt;P&gt;So I wanted some logic in making this work and avoid cross joins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851684#M469537</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851685#M469538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible. You need to come up with some sort of a unique key between the two tables other wise you end up having a cross join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851685#M469538</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-30T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851686#M469539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must define the logic to do the mapping. Qlikview cannot. And neither can I. I don't know which records should map to which record. I have no information that allows me to determine the logic to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851686#M469539</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-30T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851687#M469540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried generating a unique key with Order&amp;amp;Start&amp;amp;End combination, and when I join these dates but again ending up with cross joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have to create a logic with what I need to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried multiple scenarios, but failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me in this scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851687#M469540</guid>
      <dc:creator />
      <dc:date>2015-06-30T13:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851688#M469541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sindhu, the document attached returns the expected result but it has a very weak logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first StartDate of an order is related to the first EndDate of that order, same for the 2nd, 3rd... For this sample of data is ok, but in real data I think you can find some issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851688#M469541</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-30T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851689#M469542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot, according to the example in your first post, the excel you provided has the end times in the Start sheet and the start times in the End sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851689#M469542</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-30T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851690#M469543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the data I provided in excel is altered, actually the Start Sheet has the end dates and the End Sheet has the start dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I posted in the sample data in my first post is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to use your logic and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851690#M469543</guid>
      <dc:creator />
      <dc:date>2015-06-30T13:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851691#M469544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your logic worked perfectly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fortunately didn't find any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method what you suggested is similar to what I used, but only the using of peek is different. I used it in another way, but didn't give proper results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help in understanding this statement, how does it work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Peek(Order)=Order, Peek(Cont)+1, 1) as Cont&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will help me in understanding more technically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851691#M469544</guid>
      <dc:creator />
      <dc:date>2015-07-01T12:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in calculating Turn for multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851692#M469545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sindhu, as you don't know wich start is related to wich end I load them in sorted by : ORDER, DateTime (Start or End).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that sort, if the previous loaded Order is different from the current record it means is a new order, so the Cont starts at 1 (it goes for the 'else' part of the 'if).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Order is equal than the previous it takes the value Cont has in previous record and adds '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way Cont is used as the ID that relate each Start with his End: Start of Order x with Cont=1 will be related with the End of the same order and the same Cont. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to advise again that is a very weak logic, I don't know where the data came from but for example: there will be a Start, but if there is no End (because of a blackout, deleted record, duplicated start...), the next check for that order is again a Start...something like this will break all the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-calculating-Turn-for-multiple-dates/m-p/851692#M469545</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-07-01T12:50:08Z</dc:date>
    </item>
  </channel>
</rss>

