<?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 Help with Grouping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937817#M976741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please attach the&amp;nbsp; qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 08:05:50 GMT</pubDate>
    <dc:creator>Pulkit_Thukral</dc:creator>
    <dc:date>2015-08-31T08:05:50Z</dc:date>
    <item>
      <title>Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937812#M976736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the data in below fomat&amp;nbsp; for few servers every 10 mins in csv format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECKED AT, SERVER NAME, SERVICE NAME, STATUS&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server1,Service A,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server1,Service B,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server1,Service C,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server1,Service D,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server1,Service E,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service A,Stopped&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service B,Stopped&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service C,Aborted&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service D,Running&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service E,Running&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above table if the Service Name "Service C" is not running then we should consider all the other Services of Server to be not running so basically we want to create a new column in the load script whose value should be 0 if for all service for particular server if the "Service C" status is not running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note The timestamp values of each service may vary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;CHECKED AT, SERVER NAME, SERVICE NAME, STATUS,&lt;STRONG&gt;NEW COLUMN&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;8/6/2015 13:00,Server1,Service A,Running,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;8/6/2015 13:00,Server1,Service B,Running,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;8/6/2015 13:00,Server1,Service C,Running,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;8/6/2015 13:00,Server1,Service D,Running,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;8/6/2015 13:00,Server1,Service E,Running,1&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service A,Stopped,0&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service B,Stopped,0&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service C,Aborted,0&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service D,Running,0&lt;/P&gt;&lt;P&gt;8/6/2015 13:00,Server2,Service E,Running,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the Sample csv files as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 07:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937812#M976736</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2015-08-31T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937813#M976737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;s:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [CHECKED AT], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SERVER NAME], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SERVICE NAME], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample1.csv&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where len(trim([CHECKED AT]))&amp;gt;0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join (s)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [SERVER NAME], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; STATUS as NewColumn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; if you want 0, replace with&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as NewColumn&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident s&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [SERVICE NAME] = 'Service C'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and STATUS &amp;lt;&amp;gt; 'Running'; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 07:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937813#M976737</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-31T07:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937814#M976738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this left join work if the no of records are more that 1 million &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 07:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937814#M976738</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2015-08-31T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937815#M976739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;left join will work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you have to add the field [CHECKED AT] and a group by if you have the same server at different time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 08:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937815#M976739</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-31T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937816#M976740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;left join (s)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [SERVER NAME],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; [CHECKED AT], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; max(0) as NewColumn&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident s&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [SERVICE NAME] = 'Service C'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and STATUS &amp;lt;&amp;gt; 'Running'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; [SERVER NAME],&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; [CHECKED AT]; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 08:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937816#M976740</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-31T08:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937817#M976741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please attach the&amp;nbsp; qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 08:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937817#M976741</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2015-08-31T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Grouping</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937818#M976742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;P&gt;and the modified .csv&amp;nbsp; I used to test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 08:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-Grouping/m-p/937818#M976742</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-31T08:08:03Z</dc:date>
    </item>
  </channel>
</rss>

