<?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: Counting Outstanding Open Tickets in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578866#M42224</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reviewing the data and script i think i found the problem. Apparently not all Created dates is triggering IsOpen to add 1 to the data table example a ticket open in 2016 and is still open now IsOpen is showing as 0 against the reference date.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 09:48:13 GMT</pubDate>
    <dc:creator>Keitaru</dc:creator>
    <dc:date>2019-05-10T09:48:13Z</dc:date>
    <item>
      <title>Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1577147#M42048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been trying this for the longest time but still have yet to be able to achieve my Objective had referred to some examples such as&amp;nbsp;&lt;SPAN&gt;&lt;A title="Intervalmatch Count Open Items" href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Intervalmatch-Count-Open-Items/td-p/1129265" target="_blank" rel="noopener"&gt;Intervalmatch Count Open Items&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;OBJECTIVE&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Combo Chart&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension:&lt;/STRONG&gt; Month(ReferenceDate)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measures 1 (Line):&lt;/STRONG&gt;&amp;nbsp;Cumulative outstanding (Open) tickets over the past week&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measures 2 (Bar):&amp;nbsp;&lt;/STRONG&gt;Ticket Created in that Week/Month&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measures 3 (Bar):&amp;nbsp;&lt;/STRONG&gt;Ticket Closed in that Week/Month&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Data Model Viewer&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IntervalMatch.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11522i1E83209E13E80A13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IntervalMatch.PNG" alt="IntervalMatch.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;"Problem ID*+",&lt;BR /&gt;Date(Timestamp#("Problem Created Date",'DD/MM/YYY hh:mm:ss')) as "Problem Created Date",&lt;BR /&gt;"Operational Categorization Tier 2",&lt;BR /&gt;"Status*",&lt;BR /&gt;Date(Timestamp#("Closed Date",'DD/MM/YYY hh:mm:ss')) as "Problem Closed Date"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM Data;&lt;/P&gt;&lt;P&gt;DateRange:&lt;BR /&gt;Load&lt;BR /&gt;"Problem ID*+",&lt;BR /&gt;"Status*" as TicketStatus,&lt;BR /&gt;"Problem Created Date" as Created,&lt;BR /&gt;If(not isnull("Problem Closed Date") or len(trim("Problem Closed Date"))&amp;lt;&amp;gt;0 ,"Problem Closed Date",Today()) as Closed&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;BR /&gt;LOAD "Problem ID*+",&lt;BR /&gt;TicketStatus,&lt;BR /&gt;Date(Created+iterno()-1) as ReferenceDate,&lt;/P&gt;&lt;P&gt;If(iterno()=1, 1,0) as CreatedFlag,&lt;/P&gt;&lt;P&gt;If(Date(Created+iterno()-1) = Closed, 1,0) as ClosedFlag&lt;/P&gt;&lt;P&gt;Resident DateRange&lt;/P&gt;&lt;P&gt;WHILE Created+iterno()-1 &amp;lt;= Closed;&lt;/P&gt;&lt;P&gt;MasterCalender:&lt;BR /&gt;Load&lt;BR /&gt;ReferenceDate,&lt;BR /&gt;Month(ReferenceDate) as Month,&lt;BR /&gt;Year(ReferenceDate) as Year,&lt;BR /&gt;Date(MonthStart(ReferenceDate),'MMM-YY') as Period&lt;/P&gt;&lt;P&gt;Resident LinkTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1577147#M42048</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2024-11-16T20:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578798#M42217</link>
      <description>&lt;P&gt;I would use the following script&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;[Problem ID*+] as ProblemID,&lt;BR /&gt;[Status*] as TicketStatus,&lt;BR /&gt;Date(Floor([Problem Created Date])) as CreatedDate,&lt;BR /&gt;Date(Floor([Problem Closed Date] )) as ClosedDate,&lt;BR /&gt;[Operational Categorization Tier 2] as Categorization&lt;BR /&gt;FROM [lib://Keitaru/Data.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;Dates:&lt;BR /&gt;Load &lt;BR /&gt;ProblemID,&lt;BR /&gt;Date(CreatedDate+IterNo()-1) as ReferenceDate,&lt;BR /&gt;If(IterNo()=1, 1,0) as IsOpeningDate,&lt;BR /&gt;If(CreatedDate+IterNo()-1 &amp;lt; ClosedDate, 1,0) as IsOpen,&lt;BR /&gt;If(CreatedDate+IterNo()-1 = ClosedDate, 1,0) as IsClosingDate&lt;BR /&gt;Resident Data&lt;BR /&gt;While CreatedDate+IterNo()-1 &amp;lt;= RangeMin(ClosedDate,Today());&lt;BR /&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;Load&lt;BR /&gt;ReferenceDate,&lt;BR /&gt;Dual('W' &amp;amp; Num(Week(ReferenceDate),'00') &amp;amp;'-'&amp;amp; Mid(Year(ReferenceDate),3,2),WeekStart(ReferenceDate)) as Week,&lt;BR /&gt;Date(MonthStart(ReferenceDate),'MMM-YY') as Month,&lt;BR /&gt;Year(ReferenceDate) as Year&lt;BR /&gt;Resident Dates;&lt;/P&gt;
&lt;P&gt;And define the three measures as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count(Distinct {&amp;lt;IsOpen={1}&amp;gt;} [ProblemID]) //&amp;nbsp;# of open tickets&lt;/P&gt;
&lt;P&gt;Count(Distinct {&amp;lt;IsOpeningDate={1}&amp;gt;} [ProblemID]) //&amp;nbsp;Opened this period&lt;/P&gt;
&lt;P&gt;Count(Distinct {&amp;lt;IsClosingDate={1}&amp;gt;} [ProblemID]) //&amp;nbsp;Closed this period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/HIC&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578798#M42217</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2019-05-10T07:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578816#M42220</link>
      <description>&lt;P&gt;Finally! Thank you so much &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now my question is how do I calculate rolling outstanding Tickets. Example if i were to select say certain date, as long as the ticket is still marked as is Open it would count all the tickets prior to the selected date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current in expression I've tried using Cumulative however its not showing the right number from what I see:&lt;/P&gt;&lt;P&gt;Rangesum(above(Count(Distinct {&amp;lt;IsOpen={1}&amp;gt;} [ProblemID]), 0, RowNo(Total)))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Outstanding line.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11833iC767C3F8244CA649/image-size/large?v=v2&amp;amp;px=999" role="button" title="Outstanding line.PNG" alt="Outstanding line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Looking to have the yellow line at a higher point as it ideally should count in all isOpen tickets that are still currently open the current count&amp;nbsp;&lt;SPAN&gt;Count(Distinct {&amp;lt;IsOpeningDate={1}&amp;gt;} [ProblemID]) doesnt seem to be reflecting this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 09:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578816#M42220</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2019-05-10T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578861#M42223</link>
      <description>&lt;P&gt;I think you are making it too complicated... My first expression calculates exactly what you want: It calculates the total number of open tickets that specific date - also if they were created many months ago. I don't think you need to (or should) use any additional accumulation.&lt;/P&gt;
&lt;P&gt;HIC&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 09:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578861#M42223</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2019-05-10T09:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578866#M42224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reviewing the data and script i think i found the problem. Apparently not all Created dates is triggering IsOpen to add 1 to the data table example a ticket open in 2016 and is still open now IsOpen is showing as 0 against the reference date.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 09:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1578866#M42224</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2019-05-10T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Outstanding Open Tickets</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1579329#M42284</link>
      <description>&lt;P&gt;Hi HIC,&lt;BR /&gt;I've adapted the script for my data a little, which includes the following requirements&lt;BR /&gt;If ticket created, isOpening = 1&lt;BR /&gt;If Tickets status are not marked as cancelled, and are still open isOpen = 1 (Status = Pending, Assigned, Under Review, Under Investigation, using this to check the data if isOpen shows 1)&lt;BR /&gt;If Tickets status are marked as cancelled and do not have a closed date or if Ticket has a closed date, isClosing = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dates:&lt;BR /&gt;Load&lt;BR /&gt;[Problem ID],&lt;BR /&gt;Date(CreatedDate+IterNo()-1) as ReferenceDate,&lt;BR /&gt;If([Status]&amp;lt;&amp;gt;'Cancelled' and IterNo()=1, 1,0) as IsOpeningDate,&lt;BR /&gt;If([Status]&amp;lt;&amp;gt;'Cancelled' and CreatedDate+IterNo()-1 &amp;lt; ClosedDate, 1,0) as IsOpen,&lt;BR /&gt;If([Status]&amp;lt;&amp;gt;'Cancelled'&amp;nbsp; and CreatedDate+IterNo()-1 = ClosedDate, 1,0) as IsClosingDate&lt;BR /&gt;Resident [Open Problem] While CreatedDate+IterNo()-1 &amp;lt;= RangeMin(ClosedDate,Today());&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;Load&lt;BR /&gt;ReferenceDate,&lt;BR /&gt;Dual('W' &amp;amp; Num(Week(ReferenceDate),'00') &amp;amp;'-'&amp;amp; Mid(Year(ReferenceDate),3,2),WeekStart(ReferenceDate)) as Week,&lt;BR /&gt;Date(MonthStart(ReferenceDate),'MMM-YY') as Month,&lt;BR /&gt;Year(ReferenceDate) as Year&lt;BR /&gt;Resident Dates;&lt;/P&gt;&lt;P&gt;How to deal if ClosedDate is a Null?&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 07:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Outstanding-Open-Tickets/m-p/1579329#M42284</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2019-05-13T07:57:17Z</dc:date>
    </item>
  </channel>
</rss>

