<?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: How to make a group data issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688746#M52558</link>
    <description>Replace(Class(id),'x','1,2,3,1,2,3')</description>
    <pubDate>Sat, 28 Mar 2020 17:31:30 GMT</pubDate>
    <dc:creator>Rao_007</dc:creator>
    <dc:date>2020-03-28T17:31:30Z</dc:date>
    <item>
      <title>How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688715#M52552</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to do an app where I have the following table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Group1.png" style="width: 161px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30801i62C5B11DF286CA87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Group1.png" alt="Group1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where x has to be replace by 1,2 and 3 with a loop, to get this desired result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Group2.png" style="width: 162px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30802i021F8FA8AA60EF90/image-size/large?v=v2&amp;amp;px=999" role="button" title="Group2.png" alt="Group2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I get this?&lt;/P&gt;&lt;P&gt;As you can see, you can have 3 characters plus an X or 4 characters without the X and you have to do nothing because you have the complete group code of 4 digits.&lt;/P&gt;&lt;P&gt;I've attached an excel table with the example&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 12:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688715#M52552</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2020-03-28T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688718#M52553</link>
      <description>&lt;P&gt;I do it quickly so you can optimize it ....&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

LOAD * INLINE [
    Id, Group
    101x, Group 1
    1021, Group 2
    103x, Group 3
];

TempX:
noconcatenate
load * resident Data where wildmatch(Id,'*x')&amp;gt;0;
TempNX:
noconcatenate
load Id as I, "Group" as G resident Data where wildmatch(Id,'*x')=0;

drop table Data;


FOR i = 0 TO NoOfRows('TempX') - 1
Temp:
concatenate
LET IDtemp = keepchar(peek('Id', $(i), 'TempX'),'0123456789');
LET Grouptemp = peek('Group', $(i), 'TempX');

	FOR j = 1 TO 3
			
			LOAD '$(IDtemp)$(j)' as ID,'$(Grouptemp)' as "Group"
			RESIDENT TempX
			;

	NEXT j
	
NEXT i
concatenate
load I as ID, G as "Group" resident TempNX;

Final:
noconcatenate
load distinct * resident Temp;

drop table TempX,TempNX,Temp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 558px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30803iBD330FD201341E84/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 13:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688718#M52553</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-28T13:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688727#M52555</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've copy your code and I've got this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Group3.png" style="width: 432px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30807i52C0FA262697B77E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Group3.png" alt="Group3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you add your example in QlikView or Qlik Sense please?&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 14:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688727#M52555</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2020-03-28T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688743#M52556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;attached Qlikview File&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 16:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688743#M52556</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-28T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688744#M52557</link>
      <description>&lt;P&gt;Thanks! If I comment the concatenate it works fine.&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 16:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688744#M52557</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2020-03-28T16:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group data issue</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688746#M52558</link>
      <description>Replace(Class(id),'x','1,2,3,1,2,3')</description>
      <pubDate>Sat, 28 Mar 2020 17:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-make-a-group-data-issue/m-p/1688746#M52558</guid>
      <dc:creator>Rao_007</dc:creator>
      <dc:date>2020-03-28T17:31:30Z</dc:date>
    </item>
  </channel>
</rss>

