<?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: Nested Chart Queries ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594688#M1114606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a sample just at the moment, am working from QVDs.&amp;nbsp; I will try to make a sample today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 10:43:53 GMT</pubDate>
    <dc:creator>simonb2013</dc:creator>
    <dc:date>2014-02-18T10:43:53Z</dc:date>
    <item>
      <title>Nested Chart Queries ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594686#M1114604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still a newbie, not necessarily looking for an answer per se .... just pointers on where to begin looking !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my scenario....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main data set &amp;lt;items&amp;gt; is 1 row per item, PK = [ID]&lt;/P&gt;&lt;P&gt;Secondary data set is a &amp;lt;changelog&amp;gt; :- [ID], [Status], [DateTimeFrom], [DateTimeTo], [duration]&lt;/P&gt;&lt;P&gt;And the value questions I'm trying to answer with QV are ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Number of items in [Status] 'E' on the 1st of each Month.&lt;/P&gt;&lt;P&gt;This one I have done by first creating reference date tables, and then making a chart with Dimension&amp;nbsp; [ReferenceDate]&amp;nbsp; and expression of "count( {&amp;lt;[Status]={'E'}&amp;gt;} DISTINCT ID) "&lt;/P&gt;&lt;P&gt;.. all good so far !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the tricky part ....&lt;/P&gt;&lt;P&gt;(2) For the main data set items identified in (1), sum the [duration] of all &amp;lt;changelog&amp;gt; entries, where [status]='B' and [DateTimeTo] &amp;lt; [ReferenceDate]&lt;/P&gt;&lt;P&gt;... so here I am basically using the results of (1) and trying to use them as a filter on a further subsequent query.&lt;/P&gt;&lt;P&gt;I am at a loss as to how to link [ID] from (1), and use it as a filter on (2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 12:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594686#M1114604</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-02-17T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Chart Queries ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594687#M1114605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload your sample apps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 12:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594687#M1114605</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-17T12:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Chart Queries ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594688#M1114606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a sample just at the moment, am working from QVDs.&amp;nbsp; I will try to make a sample today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594688#M1114606</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-02-18T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Chart Queries ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594689#M1114607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have 2 incoming datasets.&lt;/P&gt;&lt;P&gt;[Worklist] holds 1 row per item, with key field [ID]&lt;/P&gt;&lt;P&gt;[StatusWindows] is a change log recording the status of each [ID] with start &amp;amp; end DateTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each month, I need to report 2 facts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;P&gt;How many [ID]s had [SatusDpt]='DST' &amp;amp; [Status]='In Progress'&lt;/P&gt;&lt;P&gt;This I have done by creating a flag for those start/end times that cover the 1st of a Month&lt;/P&gt;&lt;P&gt;Count({&amp;lt;StatusDpt = {'DST'},Status = {'In Progress'},ReferenceDate_TH_flag = {'Y'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;For each of the [ID]s in the above result,&lt;/P&gt;&lt;P&gt;How many days did they previously have : [StatusDpt]='DST' and [Status]='In Queue'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example, I have sumed the number of days thus :&lt;/P&gt;&lt;P&gt;rangesum(above(sum(&amp;nbsp; {&amp;lt;StatusDpt={'DST'},Status={'In Queue'}&amp;gt;}&amp;nbsp;&amp;nbsp; DaysDuration), 0 , RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is displaying a result for Aug.Sept.Oct&lt;/P&gt;&lt;P&gt;Although I want the entire cumulative total as shown, I only want it to display these results when there is also a result in (1).&lt;/P&gt;&lt;P&gt;(so November onwards for [ID]=3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 09:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Chart-Queries/m-p/594689#M1114607</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-02-19T09:14:11Z</dc:date>
    </item>
  </channel>
</rss>

