<?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 Count open and closed tickets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241235#M91679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;heidenberg wrote:This sounds like something i would like to do, alternative number 2, could you give an example on how you would achieve this?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That WAS an example of how to achieve it. But if you need a QVW, here's what you get if you turn the tables I mentioned into inline loads, and create the pivot table as described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Mar 2010 19:04:30 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-03-23T19:04:30Z</dc:date>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241229#M91673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a nudge in the right direction.&lt;/P&gt;&lt;P&gt;I've got an ticket number, an opened date, and a closed date on a table. What I want is to create a chart with the count of tickets that were opened and a second expression on the same chart that counts the number of tickets that were closed in a given month.&lt;/P&gt;&lt;P&gt;For whatever reason, I can't get my head around this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 23:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241229#M91673</guid>
      <dc:creator />
      <dc:date>2010-02-17T23:07:26Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241230#M91674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you have this data:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Ticket Opened Closed other fields&lt;BR /&gt;1 Jan 7, 2009 Jan 9, 2009 blah blah blah&lt;BR /&gt;2 Jan 21, 2009 Feb 17, 2009 something&lt;BR /&gt;3 Feb 10, 2009 Mar 20, 2009 something else&lt;/P&gt;&lt;P&gt;You want to see this chart?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Opened Closed&lt;BR /&gt;Jan 2009 2 1&lt;BR /&gt;Feb 2009 1 1&lt;BR /&gt;Mar 2009 0 1&lt;/P&gt;&lt;P&gt;And if you then select Feb 2009, you want to see this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Opened Closed&lt;BR /&gt;Feb 2009 1 1&lt;/P&gt;&lt;P&gt;Since you have two different dates, neither is the one you want for the chart. So one option is creating a date island, then matching it up in the chart with an if:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dimension = MonthIsland&lt;BR /&gt;Opened expression = count(distinct if(monthstart(Opened)=MonthIsland,Ticket))&lt;BR /&gt;Closed expression = count(distinct if(monthstart(Closed)=MonthIsland,Ticket))&lt;/P&gt;&lt;P&gt;It'll have all the usual downsides of a date island - slow on large data sets, selections behaving strangely, and so on.&lt;/P&gt;&lt;P&gt;Another option, if your data and other charts allow, is to change your data model to only have a single date field:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Ticket other fields&lt;BR /&gt;1 blah blah blah&lt;BR /&gt;2 something&lt;BR /&gt;3 something else&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Ticket DateType Date&lt;BR /&gt;1 Opened Jan 7, 2009&lt;BR /&gt;1 Closed Jan 9, 2009&lt;BR /&gt;2 Opened Jan 21, 2009&lt;BR /&gt;2 Closed Feb 17, 2009&lt;BR /&gt;3 Opened Feb 10, 2009&lt;BR /&gt;3 Closed Mar 20, 2009&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Date Month&lt;BR /&gt;Jan 7, 2009 Jan 2009&lt;BR /&gt;Jan 9, 2009 Jan 2009&lt;BR /&gt;Jan 21, 2009 Jan 2009&lt;BR /&gt;Feb 10, 2009 Feb 2009&lt;BR /&gt;Feb 17, 2009 Feb 2009&lt;BR /&gt;Mar 20, 2009 Mar 2009&lt;/P&gt;&lt;P&gt;Then you just make a pivot table:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dimension 1 = Month&lt;BR /&gt;dimension 2 = DateType&lt;BR /&gt;expression = count(distinct Ticket)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 23:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241230#M91674</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-17T23:30:56Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241231#M91675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a table with a row for each Open and Close activity. Like this:&lt;/P&gt;&lt;P&gt;Activity:&lt;BR /&gt;LOAD&lt;BR /&gt; ID,&lt;BR /&gt; OpenDate as Date,&lt;BR /&gt; 1 as OpenCount&lt;BR /&gt;RESIDENT Tickets;&lt;/P&gt;&lt;P&gt;CONCATENATE (Activity) LOAD&lt;BR /&gt; ID,&lt;BR /&gt; CloseDate as Date,&lt;BR /&gt; 1 as CloseCount&lt;BR /&gt;RESIDENT Tickets;&lt;/P&gt;&lt;P&gt;Example attached.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 01:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241231#M91675</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-02-18T01:24:47Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241232#M91676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John. That got me back on track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 15:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241232#M91676</guid>
      <dc:creator />
      <dc:date>2010-02-18T15:54:18Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241233#M91677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, that's exactly what I did. Thanks for the reply. it seems so simple but for whatever reason yesterday, I couldn't get my brain to work right.&lt;/P&gt;&lt;P&gt;Stupid brain. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 15:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241233#M91677</guid>
      <dc:creator />
      <dc:date>2010-02-18T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241234#M91678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;This sounds like something i would like to do, alternative number 2, could you give an example on how you would achieve this?&lt;/P&gt;&lt;P&gt;-Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 09:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241234#M91678</guid>
      <dc:creator />
      <dc:date>2010-03-23T09:37:35Z</dc:date>
    </item>
    <item>
      <title>Count open and closed tickets</title>
      <link>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241235#M91679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;heidenberg wrote:This sounds like something i would like to do, alternative number 2, could you give an example on how you would achieve this?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That WAS an example of how to achieve it. But if you need a QVW, here's what you get if you turn the tables I mentioned into inline loads, and create the pivot table as described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 19:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-open-and-closed-tickets/m-p/241235#M91679</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-23T19:04:30Z</dc:date>
    </item>
  </channel>
</rss>

