<?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 Grouping data at diff. level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148221#M26545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are almost there. Just remember two rules:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When you use GROUP BY to summarize, all your "key" fields need to be listed in the GROUP BY clause, even if it's a calculated formula.&lt;/LI&gt;&lt;LI&gt;When you join tables, you have to have your join keys present both in the table and in the join load.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The following *should* work. I marked the changes with Bold and Underline formatting. If you don't want to have KeyBatchID in the Summary Table, you can drop it later, but you need to have it at first, for the join to work...&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic; margin: 0in 0in 0pt"&gt;QueueHistory:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;INNER&lt;/B&gt; &lt;B&gt;KEEP&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(QUEUEID+ENTITYID+QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; KeyQueueHistoryId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;QUEUEID &lt;B&gt;as&lt;/B&gt; KeyQueueId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ENTITYID &lt;B&gt;as&lt;/B&gt; KeyBatchId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;hour(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Hour],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;minute(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Minute],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;second(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Second],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;hour(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Hour],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;minute(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Minute],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;second(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Second],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(TARGETQUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue Due Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;QUEUEUSERID &lt;B&gt;as&lt;/B&gt; QueueUserId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;CYCLEID &lt;B&gt;as&lt;/B&gt; CycleId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;IOFLAG &lt;B&gt;as&lt;/B&gt; IOFlag,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;autonumber(ENTITYID+CYCLEID) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle;&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt"&gt;SQL&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;SELECT&lt;/B&gt; * from &lt;B&gt;Table_data;&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="font-style: italic; margin: 0in 0in 0pt"&gt;QueueHistorySummary:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(KeyBatchId + CycleId ) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;&lt;/B&gt; KeyBatchId ,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt"&gt;// KeyBatchId &amp;amp;'-'&amp;amp; CycleId as KeyBatchCycle,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;//&lt;/B&gt; CycleId as CycleId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MIN([Queue Start Date]) &lt;B&gt;as&lt;/B&gt; [Cycle Start Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAX([Queue End Date]) &lt;B&gt;as&lt;/B&gt; [Cycle End Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MIN(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue Start Date])) &lt;B&gt;as&lt;/B&gt; [QA Start&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAX(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [QA End&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAXSTRING(IF(KeyQueueId=1003,'Y','N')) &lt;B&gt;as&lt;/B&gt; QaFailedResult&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;RESIDENT&lt;/B&gt; QueueHistory&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;GROUP&lt;/B&gt; &lt;B&gt;BY&lt;/B&gt; KeyBatchId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;autonumber&lt;/B&gt;(KeyBatchId + CycleId )&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;Left join&lt;/B&gt; &lt;I&gt;(QueueHistorySummary)&lt;/I&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; KeyBatchId ,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;max(if(num(KeyQueueId)=1004,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [Batch Comp Date]&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;resident&lt;/B&gt; QueueHistory&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;group&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; KeyBatchId;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2009 01:04:55 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-07-02T01:04:55Z</dc:date>
    <item>
      <title>Grouping data at diff. level</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148220#M26544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every one,&lt;/P&gt;&lt;P&gt;I have data, which had batch id and cycle id, per batch there will be one or more cycleid.&lt;/P&gt;&lt;P&gt;I have diff, date which I want to find out, basically analytical function.&lt;/P&gt;&lt;P&gt;, you can see I have diff group in both load, How can i do in QlikView, Is there any analytical function which I can use. I oracle we have first and last vale function and you can use partition by clause to divide in to diff group, Can we do this in one load in Qlikview? I am not bale to figure out this, please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;I&gt;QueueHistory:&lt;/I&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;INNER&lt;/B&gt; &lt;B&gt;KEEP&lt;/B&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(QUEUEID+ENTITYID+QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; KeyQueueHistoryId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;QUEUEID &lt;B&gt;as&lt;/B&gt; KeyQueueId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;ENTITYID &lt;B&gt;as&lt;/B&gt; KeyBatchId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;floor(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;hour(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Hour],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;minute(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Minute],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;second(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Second],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;floor(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;hour(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Hour],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;minute(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Minute],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;second(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Second],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;floor(TARGETQUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue Due Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;QUEUEUSERID &lt;B&gt;as&lt;/B&gt; QueueUserId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;CYCLEID &lt;B&gt;as&lt;/B&gt; CycleId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;IOFLAG &lt;B&gt;as&lt;/B&gt; IOFlag,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;autonumber(ENTITYID+CYCLEID) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;SQL&lt;/B&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;SELECT&lt;/B&gt; * from &lt;B&gt;Table_data;&lt;/B&gt;&lt;BR /&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;I&gt;QueueHistorySummary:&lt;/I&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(KeyBatchId + CycleId ) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;// KeyBatchId &amp;amp;'-'&amp;amp; CycleId as KeyBatchCycle,&lt;/B&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;//&lt;/B&gt; CycleId as CycleId,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; MIN([Queue Start Date]) &lt;B&gt;as&lt;/B&gt; [Cycle Start Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; MAX([Queue End Date]) &lt;B&gt;as&lt;/B&gt; [Cycle End Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; MIN(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue Start Date])) &lt;B&gt;as&lt;/B&gt; [QA Start&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; MAX(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [QA End&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; Date],&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; MAXSTRING(IF(KeyQueueId=1003,'Y','N')) &lt;B&gt;as&lt;/B&gt; QaFailedResult&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;RESIDENT&lt;/B&gt; QueueHistory&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;GROUP&lt;/B&gt; &lt;B&gt;BY&lt;/B&gt; KeyBatchId,CycleId ;&lt;BR /&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;Left join&lt;/B&gt; &lt;I&gt;(QueueHistorySummary)&lt;/I&gt;&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;LOAD&lt;/B&gt; KeyBatchId ,&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt; max(if(num(KeyQueueId)=1004,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [Batch Comp Date]&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;resident&lt;/B&gt; QueueHistory&lt;BR style="margin: 0in 0in 0pt; mso-layout-grid-align: none;" /&gt;&lt;B&gt;group&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; KeyBatchId;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 00:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148220#M26544</guid>
      <dc:creator />
      <dc:date>2009-07-02T00:19:22Z</dc:date>
    </item>
    <item>
      <title>Grouping data at diff. level</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148221#M26545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are almost there. Just remember two rules:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When you use GROUP BY to summarize, all your "key" fields need to be listed in the GROUP BY clause, even if it's a calculated formula.&lt;/LI&gt;&lt;LI&gt;When you join tables, you have to have your join keys present both in the table and in the join load.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The following *should* work. I marked the changes with Bold and Underline formatting. If you don't want to have KeyBatchID in the Summary Table, you can drop it later, but you need to have it at first, for the join to work...&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic; margin: 0in 0in 0pt"&gt;QueueHistory:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;INNER&lt;/B&gt; &lt;B&gt;KEEP&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(QUEUEID+ENTITYID+QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; KeyQueueHistoryId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;QUEUEID &lt;B&gt;as&lt;/B&gt; KeyQueueId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ENTITYID &lt;B&gt;as&lt;/B&gt; KeyBatchId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;hour(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Hour],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;minute(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Minute],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;second(QUEUEINDATE) &lt;B&gt;as&lt;/B&gt; [Queue Start Second],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;hour(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Hour],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;minute(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Minute],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;second(QUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue End Second],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;floor(TARGETQUEUEOUTDATE) &lt;B&gt;as&lt;/B&gt; [Queue Due Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;QUEUEUSERID &lt;B&gt;as&lt;/B&gt; QueueUserId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;CYCLEID &lt;B&gt;as&lt;/B&gt; CycleId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;IOFLAG &lt;B&gt;as&lt;/B&gt; IOFlag,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;autonumber(ENTITYID+CYCLEID) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle;&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt"&gt;SQL&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;SELECT&lt;/B&gt; * from &lt;B&gt;Table_data;&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="font-style: italic; margin: 0in 0in 0pt"&gt;QueueHistorySummary:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; autonumber(KeyBatchId + CycleId ) &lt;B&gt;as&lt;/B&gt; KeyBatchCycle,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;&lt;/B&gt; KeyBatchId ,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0in 0in 0pt"&gt;// KeyBatchId &amp;amp;'-'&amp;amp; CycleId as KeyBatchCycle,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;//&lt;/B&gt; CycleId as CycleId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MIN([Queue Start Date]) &lt;B&gt;as&lt;/B&gt; [Cycle Start Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAX([Queue End Date]) &lt;B&gt;as&lt;/B&gt; [Cycle End Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MIN(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue Start Date])) &lt;B&gt;as&lt;/B&gt; [QA Start&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAX(if(match(num(KeyQueueId),1002,1019)&amp;gt;0,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [QA End&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Date],&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MAXSTRING(IF(KeyQueueId=1003,'Y','N')) &lt;B&gt;as&lt;/B&gt; QaFailedResult&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;RESIDENT&lt;/B&gt; QueueHistory&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;GROUP&lt;/B&gt; &lt;B&gt;BY&lt;/B&gt; KeyBatchId,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;autonumber&lt;/B&gt;(KeyBatchId + CycleId )&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;Left join&lt;/B&gt; &lt;I&gt;(QueueHistorySummary)&lt;/I&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; KeyBatchId ,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;max(if(num(KeyQueueId)=1004,[Queue End Date])) &lt;B&gt;as&lt;/B&gt; [Batch Comp Date]&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;resident&lt;/B&gt; QueueHistory&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;B&gt;group&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; KeyBatchId;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 01:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148221#M26545</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-07-02T01:04:55Z</dc:date>
    </item>
    <item>
      <title>Grouping data at diff. level</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148222#M26546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much , I will try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 22:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-data-at-diff-level/m-p/148222#M26546</guid>
      <dc:creator />
      <dc:date>2009-07-06T22:04:59Z</dc:date>
    </item>
  </channel>
</rss>

