<?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: Comparison of strings and show difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2010615#M1221743</link>
    <description>&lt;P&gt;Hallo Johannes,&lt;/P&gt;
&lt;P&gt;maybe you could try splitting your different tests in the script and compare them one by one:&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="MarcoWedel_0-1669753217834.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94915i54557A11563644D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1669753217834.png" alt="MarcoWedel_0-1669753217834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Concat({$&amp;lt;Equal={0}&amp;gt;} TestName,';', TestNo)&lt;/LI-CODE&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="MarcoWedel_1-1669753241924.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94916i630F2E19FA99F3F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_1-1669753241924.png" alt="MarcoWedel_1-1669753241924.png" /&gt;&lt;/span&gt;&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="MarcoWedel_2-1669753260960.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94917i7A96F783D29EDF32/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_2-1669753260960.png" alt="MarcoWedel_2-1669753260960.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD RecNo() as TestID, * 
Inline [
Test Names, Target, Actual
E-Prüfung 1;E-Prüfung 2;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1;1, 1;1;1;1;1;1;1;1
E-Prüfung 1;E-Prüfung 2;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1;1, 1;1;1;0;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1, 1;0;1;1;1;0;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1, 1;1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;0;1;1;0;1, 1;1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1, 1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 0;0;0;0;0;0, 0;0;0;0;0;0
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 0;1;0;0;0;0, 0;0;0;0;1;0
];

table2:
LOAD *,
     -(TargetFlag=ActualFlag) as Equal;
LOAD TestID,
     IterNo()								as TestNo,
     SubField([Test Names],';',IterNo())	as TestName,
     SubField(Target,';',IterNo())			as TargetFlag,
     SubField(Actual,';',IterNo())			as ActualFlag
Resident table1
While IterNo() &amp;lt;= RangeMax(SubStringCount([Test Names],';'),SubStringCount(Target,';'),SubStringCount(Actual,';'))+1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Gruß&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 20:22:11 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-11-29T20:22:11Z</dc:date>
    <item>
      <title>Comparison of strings and show difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2010441#M1221737</link>
      <description>&lt;P&gt;Hello Qlik Community!&lt;/P&gt;
&lt;P&gt;I am pretty new to Qlik and I hope that someone can help me with my "challenge":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following table with 3 strings "Test Names", "Target" and "Actual". Strings are divided by ';'.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jw22_3-1669732646356.png" style="width: 690px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94875iC2D32669DD91207B/image-dimensions/690x73?v=v2" width="690" height="73" role="button" title="jw22_3-1669732646356.png" alt="jw22_3-1669732646356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a possibility to compare the strings/ colums "Target" and "Actual" and then show the difference as text from the column "Test Names" ?&lt;/P&gt;
&lt;P&gt;In this case, after the fifth ';' there is an difference between Target and Actual so it should show the text after the fifth ';' from the column "Test Names"&lt;/P&gt;
&lt;P&gt;In this case it should show "Kameraprüfung2 Pos2".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2010441#M1221737</guid>
      <dc:creator>jw22</dc:creator>
      <dc:date>2022-11-29T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of strings and show difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2010615#M1221743</link>
      <description>&lt;P&gt;Hallo Johannes,&lt;/P&gt;
&lt;P&gt;maybe you could try splitting your different tests in the script and compare them one by one:&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="MarcoWedel_0-1669753217834.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94915i54557A11563644D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1669753217834.png" alt="MarcoWedel_0-1669753217834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Concat({$&amp;lt;Equal={0}&amp;gt;} TestName,';', TestNo)&lt;/LI-CODE&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="MarcoWedel_1-1669753241924.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94916i630F2E19FA99F3F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_1-1669753241924.png" alt="MarcoWedel_1-1669753241924.png" /&gt;&lt;/span&gt;&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="MarcoWedel_2-1669753260960.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94917i7A96F783D29EDF32/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_2-1669753260960.png" alt="MarcoWedel_2-1669753260960.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD RecNo() as TestID, * 
Inline [
Test Names, Target, Actual
E-Prüfung 1;E-Prüfung 2;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1;1, 1;1;1;1;1;1;1;1
E-Prüfung 1;E-Prüfung 2;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1;1, 1;1;1;0;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1, 1;0;1;1;1;0;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1;1, 1;1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Längenprüfung 2;Kameraprüfung 1;Kameraprüfung 2, 1;1;0;1;1;0;1, 1;1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 1;1;1;1;1;1, 1;1;1;1;1;1
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 0;0;0;0;0;0, 0;0;0;0;0;0
E-Prüfung 1;Widerstandsprüfung 1;Widerstandsprüfung 2;Längenprüfung 1;Kameraprüfung 1;Kameraprüfung 2, 0;1;0;0;0;0, 0;0;0;0;1;0
];

table2:
LOAD *,
     -(TargetFlag=ActualFlag) as Equal;
LOAD TestID,
     IterNo()								as TestNo,
     SubField([Test Names],';',IterNo())	as TestName,
     SubField(Target,';',IterNo())			as TargetFlag,
     SubField(Actual,';',IterNo())			as ActualFlag
Resident table1
While IterNo() &amp;lt;= RangeMax(SubStringCount([Test Names],';'),SubStringCount(Target,';'),SubStringCount(Actual,';'))+1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Gruß&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2010615#M1221743</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-11-29T20:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of strings and show difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2013339#M1221840</link>
      <description>&lt;P&gt;Hello Marco,&lt;/P&gt;
&lt;P&gt;perfect, this is working fince - thank you!&lt;/P&gt;
&lt;P&gt;Schöne Grüße!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 18:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-of-strings-and-show-difference/m-p/2013339#M1221840</guid>
      <dc:creator>jw22</dc:creator>
      <dc:date>2022-12-06T18:11:37Z</dc:date>
    </item>
  </channel>
</rss>

