<?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: Set Analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461274#M565495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to aggregate towards # of Docs&lt;/P&gt;&lt;P&gt;aggr(sum(&lt;EM style="font-size: 10pt;"&gt;Delays),&lt;/EM&gt;# of Docs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2013 07:34:41 GMT</pubDate>
    <dc:creator>sivarajs</dc:creator>
    <dc:date>2013-01-28T07:34:41Z</dc:date>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461273#M565494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problems with my pivot table. Let me evaluate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A have a script that determines if a certain document no. is on time, 1-2 days late and if greater than 2 days it is considered delayed.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(num(date2)-num(date1)&amp;lt;=0, 'Real Time', if(num(date2)-num(date1)&amp;gt;2,'Delayed', '1-2Days Late'&lt;SPAN style="font-size: 10pt;"&gt;)) as Delays&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also created a script that counts the days delayed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;if(num(date2)-num(date1)&amp;lt;=0, '0', num(date2)-num(date1)) as DaysDelayed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So here comes the pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;my expression for counting all the document no.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count(docno)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;my expression for the days delayed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count({&amp;lt;Delays={"Real Time"}&amp;gt;}docno)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count({&amp;lt;Delays={"1-2Days"}&amp;gt;}docno)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count({&amp;lt;Delays={"Delayed"}&amp;gt;}docno)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;so the output should be like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="114" style="width: 392px; border: 1px solid rgb(0, 0, 0); height: 84px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;# of Docs&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Real Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;1-2Days Late&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Delayed&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When RealTime,1-2Days Late and Delayed are sum up, it should be equal to # of Docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what is happening to my table,&lt;/P&gt;&lt;P&gt;# of Docs and Real Time is always equal. What could be causing this?&lt;/P&gt;&lt;P&gt;I tried filtering using the &lt;EM&gt;Delays &lt;/EM&gt;field, # of Docs adjusted and no problem, but how come it doesn't&lt;/P&gt;&lt;P&gt;sum up? I tried creating it to a sample file, and it sums up, but when I am editing my main application,&lt;/P&gt;&lt;P&gt;It just happens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it somehow related to what I have done before it still computes equally. I included a history&lt;/P&gt;&lt;P&gt;of my previous data but the dates included in those are already way back 2010. What I'm currently&lt;/P&gt;&lt;P&gt;filtering is 2012 and still It doesn't work. Any help would be appreciated. Kindly tell me your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, Thank you for taking time to read this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Donna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 07:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461273#M565494</guid>
      <dc:creator />
      <dc:date>2013-01-28T07:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461274#M565495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to aggregate towards # of Docs&lt;/P&gt;&lt;P&gt;aggr(sum(&lt;EM style="font-size: 10pt;"&gt;Delays),&lt;/EM&gt;# of Docs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 07:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461274#M565495</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-01-28T07:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461275#M565496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for answering. I have found the source, it looks like there are multiple records(dates) in 1 document no.&lt;/P&gt;&lt;P&gt;thank you sivaraj. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 07:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/461275#M565496</guid>
      <dc:creator />
      <dc:date>2013-01-28T07:46:39Z</dc:date>
    </item>
  </channel>
</rss>

