<?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: Check if record exists in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1855205#M70585</link>
    <description>&lt;P&gt;I am concatenating the conditional statement here ([Material(Child)] Like 'K*'). So this will return either -1 or 0.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 16:06:41 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-11-03T16:06:41Z</dc:date>
    <item>
      <title>Check if record exists</title>
      <link>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1853620#M70479</link>
      <description>&lt;P&gt;I have a table looking like this (without column C):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noahfels_0-1635506951562.png" style="width: 216px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65614i9ACB36DC932DDE9B/image-dimensions/216x122?v=v2" width="216" height="122" role="button" title="noahfels_0-1635506951562.png" alt="noahfels_0-1635506951562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now I want to create column C which indicates wheter a Material in A has at least one Material(Child) in B starting with a K.&lt;/P&gt;
&lt;P&gt;As you can see in row 3, M20 has a K* Material(Child), therfore, all records with M20 should have a 1 (yes) in column C.&lt;/P&gt;
&lt;P&gt;Same for M22, which has two K* Material(Child).&lt;/P&gt;
&lt;P&gt;How do I generate this column C in the script?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 11:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1853620#M70479</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-29T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check if record exists</title>
      <link>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1853813#M70491</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    Material(Parent), Material(Child)
    M20, R00
    M20, K01
    M20, L00
    M21, R00
    M21, L00
    M22, K20
    M22, K30
];

Left Join(tab1)
LOAD [Material(Parent)], If(Index(Concat(DISTINCT [Material(Child)] Like 'K*'),'-1'),1,0) As [Has_K*_Child]
Resident tab1
Group By [Material(Parent)];&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV17.PNG" style="width: 261px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65634iCA9A438CADBA612C/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV17.PNG" alt="commQV17.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 19:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1853813#M70491</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-10-29T19:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check if record exists</title>
      <link>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1855122#M70581</link>
      <description>&lt;P&gt;Thanks a lot this works perfectly.&amp;nbsp;&lt;BR /&gt;However I do not quite understand why Concat returns -10 if there is a K*Child.&lt;BR /&gt;Furthermore, is the if-statement in Qlik always true when the condition is any number except for 0 or how does it work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1855122#M70581</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-11-03T13:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check if record exists</title>
      <link>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1855205#M70585</link>
      <description>&lt;P&gt;I am concatenating the conditional statement here ([Material(Child)] Like 'K*'). So this will return either -1 or 0.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 16:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Check-if-record-exists/m-p/1855205#M70585</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-11-03T16:06:41Z</dc:date>
    </item>
  </channel>
</rss>

