<?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 How to identify childs and create groups for the given data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187054#M627376</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 looking for a solution for the sample data which i am posting here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attachment for the data and requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot for the same.(Go through the attachment for complete details)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137781_Screen.png" style="height: 298px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravikumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2016 08:26:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-17T08:26:21Z</dc:date>
    <item>
      <title>How to identify childs and create groups for the given data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187054#M627376</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 looking for a solution for the sample data which i am posting here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attachment for the data and requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot for the same.(Go through the attachment for complete details)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137781_Screen.png" style="height: 298px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravikumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 08:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187054#M627376</guid>
      <dc:creator />
      <dc:date>2016-09-17T08:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify childs and create groups for the given data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187055#M627377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't fully understood your description, aren't 'T' items missing in your M1 material list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you are coping with a kind of BOM, so maybe have a look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4325"&gt;Bill of Materials&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 08:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187055#M627377</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-17T08:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify childs and create groups for the given data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187056#M627378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is possible,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not mandatory all the sub items are required to make Final item that is why no T items in M1 list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A final item is a contribution of sub items (May or may not with M items or may or may not with T items or may or may not with D and W items).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 08:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187056#M627378</guid>
      <dc:creator />
      <dc:date>2016-09-17T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify childs and create groups for the given data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187057#M627379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look into this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14741144754874922 jive_text_macro" jivemacro_uid="_14741144754874922" modifiedtitle="true"&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;IF(Left(Item,1) ='M',Item) as ItemGrouping,&lt;/P&gt;
&lt;P&gt;Item,&lt;/P&gt;
&lt;P&gt;Qty&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Item_Data_Sample Grouping-233096.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Store Temp into Data.qvd;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;QVD:&lt;/P&gt;
&lt;P&gt;LOAD @1 as ItemGrouping, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Item, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Qty,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(@2=@1,If(@2=@1 and @3&amp;gt;=1,0,1)) as CreateFlag &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Data.qvd]&lt;/P&gt;
&lt;P&gt;(qvd, filters(&lt;/P&gt;
&lt;P&gt;Replace(1, top, StrCnd(null)),&lt;/P&gt;
&lt;P&gt;ColXtr(1, RowCnd(CellValue, 1, StrCnd(null)), 1),&lt;/P&gt;
&lt;P&gt;ColXtr(1, RowCnd(CellValue, 1, StrCnd(null)), 1), &lt;/P&gt;
&lt;P&gt;Replace(4, top, StrCnd(null)),&lt;/P&gt;
&lt;P&gt;Replace(1, top, StrCnd(null))&lt;/P&gt;
&lt;P&gt;));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(isnull(CreateFlag),Peek('Flag'),CreateFlag) as Flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident QVD;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Drop Table QVD;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using above Script and by creating a pivot table at front -end,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Item_Data_Sample Grouping-233096.PNG" class="jive-image image-1" src="/legacyfs/online/137785_Item_Data_Sample Grouping-233096.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 12:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187057#M627379</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-09-17T12:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify childs and create groups for the given data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187058#M627380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe one solution might be also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_233096_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137835_QlikCommunity_Thread_233096_Pic1.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_233096_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/137836_QlikCommunity_Thread_233096_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14742435643322238 jive_text_macro" jivemacro_uid="_14742435643322238"&gt;
&lt;P&gt;mapLevel:&lt;/P&gt;
&lt;P&gt;Mapping&lt;/P&gt;
&lt;P&gt;LOAD Letter, RecNo() INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Letter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; T&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; W&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Level&amp;gt;1,RangeSum(Peek(Group),-(Item like 'M*'))) as Group,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Level&amp;gt;1,If(Item like 'M*',-(Qty=0),Peek(Flag))) as Flag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Level&amp;gt;Previous(Level),Peek(Path)&amp;amp;Repeat('/',Level-Previous(Level))&amp;amp;Item,If(Level=1,Item,Left(Peek(Path),Index(Peek(Path),'/',Level-1))&amp;amp;Item)) as Path;&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapLevel',Left(Item,1)) as Level,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="245898" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-233096-1125363-245898/Item_Data_Sample.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1125363-245898/Item_Data_Sample.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 00:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-childs-and-create-groups-for-the-given-data/m-p/1187058#M627380</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-09-19T00:06:31Z</dc:date>
    </item>
  </channel>
</rss>

