<?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: Trial Balance of ServiceNow Ticket Data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trial-Balance-of-ServiceNow-Ticket-Data/m-p/1932824#M76846</link>
    <description>&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fact:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Date(floor(Created)) as Created,&lt;BR /&gt;Date(floor(Closed)) as Closed,&lt;BR /&gt;"Record Type",&lt;BR /&gt;State,&lt;BR /&gt;"Incident state",&lt;BR /&gt;Number&amp;amp;Created as Key&lt;BR /&gt;FROM [lib://AttachedFiles/SampleDataToQlik.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;Bridge:&lt;BR /&gt;Load Key,Created as Date , 'Created' as DateType&lt;BR /&gt;Resident Fact;&lt;BR /&gt;Load Key,Closed as Date , 'Closed' as DateType&lt;BR /&gt;Resident Fact&lt;BR /&gt;Where len(Closed)&amp;gt;1;&lt;BR /&gt;Load Key,monthstart(Created,1) as Date , 'CarriedOver' as DateType&lt;BR /&gt;Resident Fact;&lt;/P&gt;
&lt;P&gt;MasterCalendar: &lt;BR /&gt;Load &lt;BR /&gt;TempDate AS Date, &lt;BR /&gt;week(TempDate) As Week, &lt;BR /&gt;Year(TempDate) As Year, &lt;BR /&gt;Month(TempDate) As Month, &lt;BR /&gt;Day(TempDate) As Day, &lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;BR /&gt;WeekDay(TempDate) as WeekDay &lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;//=== Generate a temp table of dates === &lt;BR /&gt;LOAD &lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;
&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('Date', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('Date', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('Date');&lt;/P&gt;
&lt;P&gt;exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikCommunity1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79804i2F2E5158152A4630/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikCommunity1.PNG" alt="qlikCommunity1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'Created'},State={'New'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closed&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'Closed'},State={'Closed'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CarriedOver/ unclosed tickets from previous period&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'CarriedOver'},State-={'Closed'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 06:46:04 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-19T06:46:04Z</dc:date>
    <item>
      <title>Trial Balance of ServiceNow Ticket Data</title>
      <link>https://community.qlik.com/t5/App-Development/Trial-Balance-of-ServiceNow-Ticket-Data/m-p/1932727#M76836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a need to build a 'Trial Balance' chart of ServiceNow Ticket data within Qliksense and I'm having difficulty.&amp;nbsp; For example, For the month of February I need to show:&lt;/P&gt;
&lt;P&gt;Beginning Balance of tickets: This essentially would be the End Balance of tickets from January&lt;/P&gt;
&lt;P&gt;New: Any NEW ticket created in February&lt;/P&gt;
&lt;P&gt;Closed: Any ticket CLOSED in february (could have been created in any prior month)&lt;/P&gt;
&lt;P&gt;End Balance: How many tickets were left open at the end of February.&lt;/P&gt;
&lt;P&gt;For the next month, March, the beginning balance would need to be February's end balance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to above, this needs to be a rolling 13 months, but Im first trying to iron out the Beginning/Ending balance is these two are giving me the most headaches.&lt;/P&gt;
&lt;P&gt;I've attached an excel with sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 21:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trial-Balance-of-ServiceNow-Ticket-Data/m-p/1932727#M76836</guid>
      <dc:creator>AnalyticsDev</dc:creator>
      <dc:date>2022-05-18T21:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trial Balance of ServiceNow Ticket Data</title>
      <link>https://community.qlik.com/t5/App-Development/Trial-Balance-of-ServiceNow-Ticket-Data/m-p/1932824#M76846</link>
      <description>&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fact:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Date(floor(Created)) as Created,&lt;BR /&gt;Date(floor(Closed)) as Closed,&lt;BR /&gt;"Record Type",&lt;BR /&gt;State,&lt;BR /&gt;"Incident state",&lt;BR /&gt;Number&amp;amp;Created as Key&lt;BR /&gt;FROM [lib://AttachedFiles/SampleDataToQlik.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;Bridge:&lt;BR /&gt;Load Key,Created as Date , 'Created' as DateType&lt;BR /&gt;Resident Fact;&lt;BR /&gt;Load Key,Closed as Date , 'Closed' as DateType&lt;BR /&gt;Resident Fact&lt;BR /&gt;Where len(Closed)&amp;gt;1;&lt;BR /&gt;Load Key,monthstart(Created,1) as Date , 'CarriedOver' as DateType&lt;BR /&gt;Resident Fact;&lt;/P&gt;
&lt;P&gt;MasterCalendar: &lt;BR /&gt;Load &lt;BR /&gt;TempDate AS Date, &lt;BR /&gt;week(TempDate) As Week, &lt;BR /&gt;Year(TempDate) As Year, &lt;BR /&gt;Month(TempDate) As Month, &lt;BR /&gt;Day(TempDate) As Day, &lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;BR /&gt;WeekDay(TempDate) as WeekDay &lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;//=== Generate a temp table of dates === &lt;BR /&gt;LOAD &lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;
&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('Date', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('Date', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('Date');&lt;/P&gt;
&lt;P&gt;exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikCommunity1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79804i2F2E5158152A4630/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikCommunity1.PNG" alt="qlikCommunity1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'Created'},State={'New'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closed&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'Closed'},State={'Closed'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CarriedOver/ unclosed tickets from previous period&lt;/P&gt;
&lt;P&gt;count({&amp;lt;DateType={'CarriedOver'},State-={'Closed'}&amp;gt;}distinct Number)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 06:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trial-Balance-of-ServiceNow-Ticket-Data/m-p/1932824#M76846</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-19T06:46:04Z</dc:date>
    </item>
  </channel>
</rss>

