<?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 Duplicate tickets flag calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063476#M637043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have some fields like Branch, Case,Down_since and Up_Since, now my issue is multiple tickets have same Up_since in a branch. I need to captured same Up_since tickets as flag 1 and minimum down_since for that tickets should be flag as 0, I'm attaching one excel file in that one Output column is there i'm expecting that...Please help me friends.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120653_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 08:29:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-06T08:29:40Z</dc:date>
    <item>
      <title>Duplicate tickets flag calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063476#M637043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have some fields like Branch, Case,Down_since and Up_Since, now my issue is multiple tickets have same Up_since in a branch. I need to captured same Up_since tickets as flag 1 and minimum down_since for that tickets should be flag as 0, I'm attaching one excel file in that one Output column is there i'm expecting that...Please help me friends.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120653_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 08:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063476#M637043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate tickets flag calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063477#M637044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how you are getting the output. Can you explain the logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063477#M637044</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-06T10:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate tickets flag calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063478#M637045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was going to ask the same thing. I am confused&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are there two 0's in the screenshot&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120664_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063478#M637045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-06T10:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate tickets flag calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063479#M637046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load the data in the script, order by Up_Since and Down_Since DESC and use peek() to see if the previous row have the same Up_Since, like:&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;LOAD *, if(Branch = peek('Branch') and Up_Since = peek('Up_Since'), 1, 0) as Flag&lt;/P&gt;&lt;P&gt;RESIDENT TABLE1&lt;/P&gt;&lt;P&gt;ORDER BY Up_Since, Down_Since DESC, Branch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063479#M637046</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-04-06T10:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate tickets flag calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063480#M637047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny,&lt;/P&gt;&lt;P&gt;In excel that output column we manually created.Inside Blue colour tickets are duplicate tickets in that red colour ticket is original ticket based that is minimum down_since when compare to all duplicate tickets.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120675_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-tickets-flag-calculation/m-p/1063480#M637047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T11:11:02Z</dc:date>
    </item>
  </channel>
</rss>

