<?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: Search for a value from multiple rows and create a new column whether the value exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2124561#M1224630</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Try like below&lt;/P&gt;
&lt;P&gt;If you have only case# as dim, then exp is&lt;/P&gt;
&lt;P&gt;if(SubStringCount(Concat(DISTINCT remark, ','), 'x') &amp;gt; 0, 'Y', 'N')&lt;/P&gt;
&lt;P&gt;suppose, if you have both case#, remark as dim, then exp is&lt;/P&gt;
&lt;P&gt;if(SubStringCount(Concat(DISTINCT TOTAL&amp;lt;case#&amp;gt; remark, ','), 'x') &amp;gt; 0, 'Y', 'N')&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 06:56:44 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2023-10-03T06:56:44Z</dc:date>
    <item>
      <title>Search for a value from multiple rows and create a new column whether the value exists</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2124097#M1224623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to search for a value in multiple rows and if the value exists in any of the rows, I need to flag it. Below table has columns case# and remark. I need to search value "x" in remark, if it exists in any of the rows for a case#, I need to flag it. The value "x" could be any of the rows for a case#.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Learner11_0-1696107438338.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117435i6E6DE1409430551D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlik_Learner11_0-1696107438338.png" alt="Qlik_Learner11_0-1696107438338.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output required:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Learner11_1-1696107551535.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117436i2DA2B10C3D2AF2A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlik_Learner11_1-1696107551535.png" alt="Qlik_Learner11_1-1696107551535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I do NOT need this. Using If statement gives me below output.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;case#&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;remark_x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD&gt;Y&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;2&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;2&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;2&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;3&lt;/TD&gt;
&lt;TD&gt;Y&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" style="height: 15.0pt;"&gt;3&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 21:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2124097#M1224623</guid>
      <dc:creator>Qlik_Learner11</dc:creator>
      <dc:date>2023-09-30T21:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a value from multiple rows and create a new column whether the value exists</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2124561#M1224630</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Try like below&lt;/P&gt;
&lt;P&gt;If you have only case# as dim, then exp is&lt;/P&gt;
&lt;P&gt;if(SubStringCount(Concat(DISTINCT remark, ','), 'x') &amp;gt; 0, 'Y', 'N')&lt;/P&gt;
&lt;P&gt;suppose, if you have both case#, remark as dim, then exp is&lt;/P&gt;
&lt;P&gt;if(SubStringCount(Concat(DISTINCT TOTAL&amp;lt;case#&amp;gt; remark, ','), 'x') &amp;gt; 0, 'Y', 'N')&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 06:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2124561#M1224630</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2023-10-03T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a value from multiple rows and create a new column whether the value exists</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2126269#M1224651</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 11:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-a-value-from-multiple-rows-and-create-a-new-column/m-p/2126269#M1224651</guid>
      <dc:creator>Qlik_Learner11</dc:creator>
      <dc:date>2023-10-07T11:54:29Z</dc:date>
    </item>
  </channel>
</rss>

