<?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: Excluding  String b  from String A in qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001082#M82913</link>
    <description>&lt;P&gt;Hi Vikas, ok, just the member 'Channel and not substrings...&lt;/P&gt;
&lt;P&gt;I'm thinking in splitting every row in different rows using subfield and then merge again using "Where Value&amp;lt;&amp;gt;'$(varA)'", like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;auxTable:
LOAD Concat(Value,',') as Value Where Value&amp;lt;&amp;gt;'$(VarB)';
LOAD Subfield('$(VarA)',',') as Value AutoGenerate 1;

LET VarC = Peek('Value',0,'auxTable');
DROP Table auxTable;&lt;/LI-CODE&gt;
&lt;P&gt;If instead of variables there is a table you can use RowNo() as RN and group by RN in the precedent load to merge again the groups.&lt;/P&gt;
&lt;P&gt;And if there are different values for VarB you can use "Where not Match(Value,$(ListOfValues))"&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 08:52:27 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-11-07T08:52:27Z</dc:date>
    <item>
      <title>Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001019#M82906</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;VarA&amp;nbsp; ='Brand_Generic,Super_Channel,Channel,MonthYear';&lt;/P&gt;
&lt;P&gt;VarB = 'Channel';&lt;/P&gt;
&lt;P&gt;I wanted to exclude/ Remove string VarB from VarA how to achieve the same?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 05:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001019#M82906</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-11-07T05:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001048#M82908</link>
      <description>&lt;P&gt;Hi, may be using Replace():&amp;nbsp;VarC = Replace('$(VarA)','$(VarB)','');&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 07:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001048#M82908</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-07T07:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001072#M82910</link>
      <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;
&lt;P&gt;Thanks for your answer&amp;nbsp; I applied the same I am losing Super_&lt;STRONG&gt;Channel&amp;nbsp; as well from the string any way to avoid this ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vikasmahajan_0-1667809288902.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92992iF426BB82A0450713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vikasmahajan_0-1667809288902.png" alt="vikasmahajan_0-1667809288902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001072#M82910</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-11-07T08:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001082#M82913</link>
      <description>&lt;P&gt;Hi Vikas, ok, just the member 'Channel and not substrings...&lt;/P&gt;
&lt;P&gt;I'm thinking in splitting every row in different rows using subfield and then merge again using "Where Value&amp;lt;&amp;gt;'$(varA)'", like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;auxTable:
LOAD Concat(Value,',') as Value Where Value&amp;lt;&amp;gt;'$(VarB)';
LOAD Subfield('$(VarA)',',') as Value AutoGenerate 1;

LET VarC = Peek('Value',0,'auxTable');
DROP Table auxTable;&lt;/LI-CODE&gt;
&lt;P&gt;If instead of variables there is a table you can use RowNo() as RN and group by RN in the precedent load to merge again the groups.&lt;/P&gt;
&lt;P&gt;And if there are different values for VarB you can use "Where not Match(Value,$(ListOfValues))"&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001082#M82913</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-07T08:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001104#M82915</link>
      <description>&lt;P&gt;Unfortunately Load script will not work for me since My Custom reporting dimensions are dynamic 72 dimensions i have &amp;amp; I need set a limit of 10 dimensions only while calculating market share.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001104#M82915</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-11-07T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001163#M82920</link>
      <description>&lt;P&gt;If you want to use Replace(), you also need to remove the comma character that precedes 'Channel'.&lt;/P&gt;
&lt;P&gt;varA:&amp;nbsp; = 'Brand_Generic,Super_Channel,Channel,MonthYear'&lt;/P&gt;
&lt;P&gt;varB:&amp;nbsp; = 'Channel'&lt;/P&gt;
&lt;P&gt;varC:&amp;nbsp; = ','&amp;amp;varB&amp;nbsp;&lt;/P&gt;
&lt;P&gt;varD : Replace(varA,varC,'')&lt;/P&gt;
&lt;P&gt;This declares the two basic variables, then concatenates a comma and varB, and then replaces the concatenation with an empty string.&lt;/P&gt;
&lt;P&gt;In the expression editor you wouldneed to use a dollar-sign expansion with varD:&lt;/P&gt;
&lt;P&gt;=$(varD)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variables in alphabetical order below, displayed in Text &amp;amp; Image chart items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-11-07 105817.png" style="width: 623px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93003iFC74B555B2FC41D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-11-07 105817.png" alt="Screenshot 2022-11-07 105817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 10:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001163#M82920</guid>
      <dc:creator>N30fyte</dc:creator>
      <dc:date>2022-11-07T10:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001166#M82921</link>
      <description>&lt;P&gt;Hi, I've very questions on how this works, first of all I'm not sure if chart script can help you to have the power of script when filtering dimensions:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Chart-Level-Scripting-Use-Cases-Samples-and-Examples/ba-p/1981049" target="_blank"&gt;https://community.qlik.com/t5/Design/Chart-Level-Scripting-Use-Cases-Samples-and-Examples/ba-p/1981049&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And the questions:&lt;/P&gt;
&lt;P&gt;-it's a custom reporting done with a selector of dimensions and a selector of measures?&lt;/P&gt;
&lt;P&gt;- why remove channel? are there some priorities for dimensions defined somewhere?&lt;/P&gt;
&lt;P&gt;- Can it be crated as MinString(DimensionField1) &amp;amp; ',' &amp;amp;&amp;nbsp;MinString(DimensionField2)...? or similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A very straightforward expression could be:&lt;/P&gt;
&lt;P&gt;VarC = Left('$(VarA)', Index('$(VarA)',',$(VarB)')) &amp;amp; Mid('$(VarA)', Index('$(VarA)',',$(VarB)') + Len(',$(VarB)') + 1);&lt;/P&gt;
&lt;P&gt;But I don't know if this might work with your real scenario&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 11:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001166#M82921</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-07T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001176#M82922</link>
      <description>&lt;LI-CODE lang="markup"&gt;=Mid(Replace(','&amp;amp;VarA&amp;amp;',' , ','&amp;amp;VarB&amp;amp;',' , ','),2,Len(Replace(','&amp;amp;VarA&amp;amp;',' , ','&amp;amp;VarB&amp;amp;',' , ','))-2)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Nov 2022 11:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001176#M82922</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-11-07T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001505#M82945</link>
      <description>&lt;P&gt;Hi Macro/Ruben,&lt;/P&gt;
&lt;P&gt;Thanks for your reply I ended up with following logic :&lt;/P&gt;
&lt;P&gt;=if(Len(GetObjectField(10)) &amp;gt;0 and Len(GetObjectField(9)) &amp;gt; 0 and Len(GetObjectField(8)) &amp;gt; 0 and Len(GetObjectField(7)) &amp;gt; 0 and Len(GetObjectField(6)) &amp;gt; 0 and Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(4)&amp;amp;','&amp;amp;GetObjectField(5)&amp;amp;','&amp;amp;GetObjectField(6)&amp;amp;','&amp;amp;GetObjectField(7)&amp;amp;','&amp;amp;GetObjectField(8)&amp;amp;','&amp;amp;GetObjectField(10),&lt;BR /&gt;if(Len(GetObjectField(9)) &amp;gt; 0 and Len(GetObjectField(8)) &amp;gt; 0 and Len(GetObjectField(7)) &amp;gt; 0 and Len(GetObjectField(6)) &amp;gt; 0 and Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(4)&amp;amp;','&amp;amp;GetObjectField(5)&amp;amp;','&amp;amp;GetObjectField(6)&amp;amp;','&amp;amp;GetObjectField(7)&amp;amp;','&amp;amp;GetObjectField(9),&lt;BR /&gt;if(Len(GetObjectField(8)) &amp;gt; 0 and Len(GetObjectField(7)) &amp;gt; 0 and Len(GetObjectField(6)) &amp;gt; 0 and Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(4)&amp;amp;','&amp;amp;GetObjectField(5)&amp;amp;','&amp;amp;GetObjectField(6)&amp;amp;','&amp;amp;GetObjectField(8),&lt;BR /&gt;if(Len(GetObjectField(7)) &amp;gt; 0 and Len(GetObjectField(6)) &amp;gt; 0 and Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(4)&amp;amp;','&amp;amp;GetObjectField(5)&amp;amp;','&amp;amp;GetObjectField(7),&lt;BR /&gt;if(Len(GetObjectField(6)) &amp;gt; 0 and Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(4)&amp;amp;','&amp;amp;GetObjectField(6),&lt;BR /&gt;if(Len(GetObjectField(5)) &amp;gt; 0 and Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(3)&amp;amp;','&amp;amp;GetObjectField(5),&lt;BR /&gt;if(Len(GetObjectField(4)) &amp;gt; 0 and Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(2)&amp;amp;','&amp;amp;GetObjectField(4),&lt;BR /&gt;if(Len(GetObjectField(3)) &amp;gt; 0 and Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(1)&amp;amp;','&amp;amp;GetObjectField(3),&lt;BR /&gt;if(Len(GetObjectField(2)) &amp;gt; 0 and Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(0)&amp;amp;','&amp;amp;GetObjectField(2),&lt;BR /&gt;if(Len(GetObjectField(1)) &amp;gt; 0 and Len(GetObjectField(0)) &amp;gt; 0, GetObjectField(1),&lt;BR /&gt;If(Len(GetObjectField(0)) &amp;gt; 0 ,GetObjectField(0)&lt;BR /&gt;,0)))))))))))&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 05:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001505#M82945</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-11-08T05:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001526#M82948</link>
      <description>&lt;P&gt;Yep, short and simple&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just because of curiosity, probably because of how the chart is created but... if&amp;nbsp;&lt;SPAN&gt;GetObjectField(10)) &amp;gt;0 doesn't means that all the other dimensions until 10 will be have something too and is not really needed to check?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And the thing about removing the previous to the last, it's because it's assumed that Channel will be always in that position?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001526#M82948</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-08T07:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding  String b  from String A in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001552#M82957</link>
      <description>&lt;P&gt;I am using Vizlib Custom Reporting extension with 72 dimensions there I could not be able to use data islands for ad-hoc , so for at least 10 levels need to calculate market share dynamically with excluding last selected dimension by user.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Vikas&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-String-b-from-String-A-in-qlik-sense/m-p/2001552#M82957</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-11-08T08:10:43Z</dc:date>
    </item>
  </channel>
</rss>

