<?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 Problem with a chart (urgent) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-a-chart-urgent/m-p/167222#M38877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck with a problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have different Documents and each document has different reports signed to it&lt;BR /&gt;Each Report has a statustype and a statusiD assigned to it.&lt;/P&gt;&lt;P&gt;I'm trying to build a chart which shows me the minimum and maximum duration of a report where the status is VL.&lt;/P&gt;&lt;P&gt;Enclosed you will find an excel sheet and a sample QVW of what I have tried so far.&lt;/P&gt;&lt;P&gt;If you select Document with ID 1. You will see that the document has 1 report which has been altered 5 times.&lt;BR /&gt;This report has had the status VL 3 times. I'm only interested to show the duration of the first and last time when it had the status VL.&lt;/P&gt;&lt;P&gt;I hope you guys can help me out. I'm kind of stuck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;/Sajjad&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5618.Question_5F00_Chart.xlsx:550:0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 12:21:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-27T12:21:25Z</dc:date>
    <item>
      <title>Problem with a chart (urgent)</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-chart-urgent/m-p/167222#M38877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck with a problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have different Documents and each document has different reports signed to it&lt;BR /&gt;Each Report has a statustype and a statusiD assigned to it.&lt;/P&gt;&lt;P&gt;I'm trying to build a chart which shows me the minimum and maximum duration of a report where the status is VL.&lt;/P&gt;&lt;P&gt;Enclosed you will find an excel sheet and a sample QVW of what I have tried so far.&lt;/P&gt;&lt;P&gt;If you select Document with ID 1. You will see that the document has 1 report which has been altered 5 times.&lt;BR /&gt;This report has had the status VL 3 times. I'm only interested to show the duration of the first and last time when it had the status VL.&lt;/P&gt;&lt;P&gt;I hope you guys can help me out. I'm kind of stuck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;/Sajjad&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5618.Question_5F00_Chart.xlsx:550:0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 12:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-chart-urgent/m-p/167222#M38877</guid>
      <dc:creator />
      <dc:date>2010-05-27T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Problem with a chart (urgent)</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-chart-urgent/m-p/167223#M38878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajjad&lt;/P&gt;&lt;P&gt;There is a mismatch in your data (qvw) and the Excel regarding ReportID and DocumentID. I might have used the wrong attributes below.&lt;/P&gt;&lt;P&gt;Can you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Status = 'VL' and&lt;BR /&gt; (End-Start=aggr(min(total End-Start),ReportID)&lt;BR /&gt;or End-Start=aggr(max(total End-Start),ReportID)), End - Start)&lt;/P&gt;&lt;P&gt;it will add the condition to be either the min or max enddate. this work with your example data because the start date is always the same for a ReportID. The "total" is used to look at all rows of the ReportID.&lt;/P&gt;&lt;P&gt;It might also be worth to calc the duration during the load to get a better view and less cluttered expressions&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jürg&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 14:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-chart-urgent/m-p/167223#M38878</guid>
      <dc:creator />
      <dc:date>2010-05-27T14:53:39Z</dc:date>
    </item>
  </channel>
</rss>

