<?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: Need something like analytic functions in Oracle in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983013#M335475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Gysbert!&lt;/P&gt;&lt;P&gt;Unfortunately, seems it will not help me. Look, we have two tickets &lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_q.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103440_qv_q.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So, we see that ticket2 (ticket_id = 2)&amp;nbsp; was created in week W42, in week W43 it wasn't touched by anyone, but it was alive, due to it should be counted in "not closed", but using &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;state_id -= {'closed'} &amp;gt;}distinct ticket_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I will receive only that ticket1 wasn't closed in week W43, but they were both not closed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, You or someone else will help me, Ihad to count such stuff, really. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 08:18:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-29T08:18:16Z</dc:date>
    <item>
      <title>Need something like analytic functions in Oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983011#M335473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm a begginer in QV developing and I really need your help. Please read following description, I'd like to find out if it is possible.&lt;/P&gt;&lt;P&gt;I have table with users tickets and table with tickets logs&lt;/P&gt;&lt;P&gt;ticket_logs has following fields:&lt;/P&gt;&lt;P&gt;ticket_id, log_id, state_id, log_date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ticket states can be: created, assigned, active and closed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make a chart which will show for week dimention how many tickets were not in state '&lt;SPAN style="font-size: 13.3333px;"&gt;closed&lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need calculate for each week the last state of each ticket in this week. I easily can do this in Oracle. and I have no idea how manage it in QV. Please, help me, any advice, something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 15:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983011#M335473</guid>
      <dc:creator />
      <dc:date>2015-10-28T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need something like analytic functions in Oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983012#M335474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FirstSortedValue function for this. If you use ticket_id as chart dimension then the expression FirstSortedValue(state_id, -log_date) will return the last state_id value for each ticket_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a count of tickets per week you need a week dimension. You can create this in the script using something like &lt;EM&gt;WeekStart(log_date) as Week&lt;/EM&gt;. You can then use this expression in your chart: &lt;EM&gt;count({&amp;lt;state_id -= {'closed'} &amp;gt;}distinct ticket_id)&lt;/EM&gt;. The expression editor does not understand -=, but the syntax is correct. See this blog post for more information: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/19/excluding-values-in-set-analysis" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d; text-decoration: underline;"&gt;Excluding values in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 16:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983012#M335474</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need something like analytic functions in Oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983013#M335475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Gysbert!&lt;/P&gt;&lt;P&gt;Unfortunately, seems it will not help me. Look, we have two tickets &lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_q.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103440_qv_q.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So, we see that ticket2 (ticket_id = 2)&amp;nbsp; was created in week W42, in week W43 it wasn't touched by anyone, but it was alive, due to it should be counted in "not closed", but using &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;state_id -= {'closed'} &amp;gt;}distinct ticket_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I will receive only that ticket1 wasn't closed in week W43, but they were both not closed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, You or someone else will help me, Ihad to count such stuff, really. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 08:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-something-like-analytic-functions-in-Oracle/m-p/983013#M335475</guid>
      <dc:creator />
      <dc:date>2015-10-29T08:18:16Z</dc:date>
    </item>
  </channel>
</rss>

