<?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: Searching Field Value in another field in Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518734#M437276</link>
    <description>&lt;P&gt;The only way to make this efficient is to create a flag in the script&lt;/P&gt;&lt;PRE&gt;LOAD ...,
 If(WildMatch([Treatment Asset], StarAsset), 1, 0) as Flag
FROM ...;&lt;/PRE&gt;&lt;P&gt;Now you have this flag which you can use in your expression like this&lt;/P&gt;&lt;PRE&gt;Concat({&amp;lt;Flag = {1}&amp;gt;} [Treatment Asset])

or

Concat(DISTINCT {&amp;lt;Flag = {1}&amp;gt;} [Treatment Asset])&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Dec 2018 14:58:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-10T14:58:33Z</dc:date>
    <item>
      <title>Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518411#M437241</link>
      <description>&lt;P&gt;Hi Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help regarding below issue.&lt;/P&gt;&lt;P&gt;I have below view and i want to print the following:&lt;/P&gt;&lt;P&gt;i&amp;gt;&amp;nbsp; &lt;STRONG&gt;"ITRC\Remedy\1||1234"&lt;/STRONG&gt; in "Try with Only Function" Expression when &lt;STRONG&gt;"StarAsset"&lt;/STRONG&gt; columns has 1234 value&lt;/P&gt;&lt;P&gt;ii&amp;gt;&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;"ITRC\Remedy\1||3456"&lt;/STRONG&gt; in "Try with Only Function" Expression&amp;nbsp; when &lt;STRONG&gt;"StarAsset"&lt;/STRONG&gt; columns has 3456 value.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Popup1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1865i0032B8D1534F86A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Popup1.png" alt="Popup1.png" /&gt;&lt;/span&gt;I have used the Only function to achieve this. and it is working correctly but based on selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i select *1234* value from StartAsset column output will be like below as per expectation and Similarly for *3456* i am getting ITRC\Remedy\1||3456 in "Try with only function column". This works only if you select any value from "StarAsset " column othetwise it appears blank. I want it to be appear without selection.&lt;/P&gt;&lt;P&gt;I am getting&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ITRC\Remedy\1||1234,&amp;nbsp;ITRC\Remedy\1||3456&lt;/STRONG&gt;&amp;nbsp; =&amp;nbsp;Concat([Treatment Asset],',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried with below Only Expression:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;"Try with Only Function" =&amp;nbsp;&lt;/STRONG&gt; Concat({&amp;lt; [Finding Treatment Asset]={$(=vFinalValuesToLook)},[Treatment Asset]={"$(=&lt;STRONG&gt;Only({&amp;lt; [Finding Treatment Asset]={$(=vFinalValuesToLook)} &amp;gt;} StarAsset))&lt;/STRONG&gt;"} &amp;gt;} [Treatment Asset],',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anybody please help me how to search Field values in another field in set analysis. qvw is also attached here for your reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PopUp2.png" style="width: 660px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1866i21B9E8C4CC6D9AE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="PopUp2.png" alt="PopUp2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 07:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518411#M437241</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-12-10T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518457#M437243</link>
      <description>&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat({&amp;lt;StarAsset = {'*3456*'}, [Treatment ID] = {$(=Concat(Chr(39) &amp;amp; [Treatment ID] &amp;amp; Chr(39), ','))}&amp;gt;} [Treatment Asset], ',')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518457#M437243</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-12-10T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518657#M437263</link>
      <description>&lt;P&gt;I don't think set analysis will work here... may be try with aggr and if statement like this&lt;/P&gt;&lt;PRE&gt;Concat(Aggr(If(WildMatch([Treatment Asset], StarAsset), [Treatment Asset]), StarAsset, StarFindingID, [Treatment Test], [Treatment Asset]))&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1896i4C95660FC1C0B0D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518657#M437263</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518731#M437274</link>
      <description>&lt;P&gt;Thank you very much stalwar ...It works as expected ....However i was wondering to get it done in set analysis itself because data is huge and will take a time to process it with AGGR function at front end.&lt;/P&gt;&lt;P&gt;Let me try to accomodate solution with real time data&amp;nbsp; and will check it performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot once again. Really appreciate your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarfaraz&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518731#M437274</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-12-10T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518734#M437276</link>
      <description>&lt;P&gt;The only way to make this efficient is to create a flag in the script&lt;/P&gt;&lt;PRE&gt;LOAD ...,
 If(WildMatch([Treatment Asset], StarAsset), 1, 0) as Flag
FROM ...;&lt;/PRE&gt;&lt;P&gt;Now you have this flag which you can use in your expression like this&lt;/P&gt;&lt;PRE&gt;Concat({&amp;lt;Flag = {1}&amp;gt;} [Treatment Asset])

or

Concat(DISTINCT {&amp;lt;Flag = {1}&amp;gt;} [Treatment Asset])&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518734#M437276</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518752#M437278</link>
      <description>&lt;P&gt;Correct But [Treatment Asset] and StarAsset coming from different table . and there is no link between that table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both tables are data island.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, it will work on selection basis only ..If i select Remedy1 then associated TreatmentAsset items will get compare with asset from another table . It will have to work based on user selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great help if that can be done in backend as you said.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518752#M437278</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-12-10T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518756#M437279</link>
      <description>&lt;P&gt;Correct But "TreatmentAsset"&amp;nbsp; and StarAsset coming from different table . and there is no link between that table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both tables are data island.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, it will work on selection basis only ..If i select Remedy1 then associated TreatmentAsset items will get compare with asset from another table . It will have to work based on user selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great help if that can be done in backend as you said.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518756#M437279</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-12-10T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Searching Field Value in another field in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518771#M437280</link>
      <description>In that case Aggr() with if statement is your only option.</description>
      <pubDate>Mon, 10 Dec 2018 15:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-Field-Value-in-another-field-in-Set-analysis/m-p/1518771#M437280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T15:37:49Z</dc:date>
    </item>
  </channel>
</rss>

